From 798d06a2317a5bb4ee38cec4d1d4f5d428d75593 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 24 Nov 2009 02:02:04 +0100 Subject: stuff --- test/tc_directory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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() -- cgit 1.4.1-2-gfad0