summaryrefslogtreecommitdiff
path: root/tests/run.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/run.py
parente6600347dac8dddc630cac6e55c08dea84b20f00 (diff)
downloadpygments-ae5c5fdb18fa618e84c408264f596ebdec96e5df.tar.gz
remove __builtin__.testdir/testfile magic
This adds a new file tests/support.py
Diffstat (limited to 'tests/run.py')
-rw-r--r--tests/run.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/run.py b/tests/run.py
index b0244d60..534a22e5 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -14,7 +14,6 @@
import sys, os, new
import unittest
-import __builtin__
from os.path import dirname, basename, join, abspath
@@ -27,9 +26,6 @@ except ImportError:
testdir = abspath(dirname(__file__))
-# useful for all tests
-__builtin__.testdir = testdir
-
failed = []
total_test_count = 0
error_test_count = 0
@@ -92,7 +88,6 @@ def run_tests(with_coverage=False):
for testfile in files:
globs = {}
try:
- __builtin__.testfile = testfile
execfile(join(testdir, testfile), globs)
except Exception, exc:
raise