diff options
author | hut <hut@lavabit.com> | 2009-11-24 02:02:04 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-11-24 02:02:04 +0100 |
commit | 798d06a2317a5bb4ee38cec4d1d4f5d428d75593 (patch) | |
tree | 335fa4def2632c91acd11e4cee9aac32f9ddd15b /test | |
parent | 556d84cd0fa94372c3fc2eb722f6925e61c42778 (diff) | |
download | ranger-798d06a2317a5bb4ee38cec4d1d4f5d428d75593.tar.gz |
stuff
Diffstat (limited to 'test')
-rw-r--r-- | test/tc_directory.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tc_directory.py b/test/tc_directory.py index 69717ba2..f97f9913 100644 --- a/test/tc_directory.py +++ b/test/tc_directory.py @@ -1,7 +1,7 @@ import unittest import sys, os sys.path.append('../code') -import directory, fsobject, file +import directory, fsobject, file, debug TESTDIR = os.path.realpath(os.path.join(os.path.dirname(sys.argv[0]), 'testdir')) TESTFILE = os.path.join(TESTDIR, 'testfile5234148') @@ -30,6 +30,7 @@ class Test1(unittest.TestCase): # Get the filenames you expect it to have and sort both before # comparing. I don't expect any order after only loading the filenames. assumed_filenames = os.listdir(TESTDIR) + assumed_filenames = list(map(lambda str: os.path.join(TESTDIR, str), assumed_filenames)) assumed_filenames.sort() dir.filenames.sort() |