summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.py
diff options
context:
space:
mode:
authorBenjamin Peterson <devnull@localhost>2008-09-18 21:03:16 -0500
committerBenjamin Peterson <devnull@localhost>2008-09-18 21:03:16 -0500
commitae5c5fdb18fa618e84c408264f596ebdec96e5df (patch)
treea4feb5b6a971d2b72b4827bd7a33d33aa46fa9bd /tests/test_examplefiles.py
parente6600347dac8dddc630cac6e55c08dea84b20f00 (diff)
downloadpygments-ae5c5fdb18fa618e84c408264f596ebdec96e5df.tar.gz
remove __builtin__.testdir/testfile magic
This adds a new file tests/support.py
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r--tests/test_examplefiles.py1
1 files changed, 1 insertions, 0 deletions
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):