From ae5c5fdb18fa618e84c408264f596ebdec96e5df Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 18 Sep 2008 21:03:16 -0500 Subject: remove __builtin__.testdir/testfile magic This adds a new file tests/support.py --- tests/test_examplefiles.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test_examplefiles.py') diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py index ee9af608..52ff3093 100644 --- a/tests/test_examplefiles.py +++ b/tests/test_examplefiles.py @@ -22,6 +22,7 @@ class ExampleFileTest(unittest.TestCase): lfd = 0 # generate methods +testdir = os.path.dirname(__file__) for fn in os.listdir(os.path.join(testdir, 'examplefiles')): absfn = os.path.join(testdir, 'examplefiles', fn) if not os.path.isfile(absfn): -- cgit v1.2.1