summaryrefslogtreecommitdiff
path: root/tests/run.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-02-18 15:40:55 +0100
committergbrandl <devnull@localhost>2007-02-18 15:40:55 +0100
commit4f20affc8e7133fc897c754ea8d5ef403ab44399 (patch)
tree6f0f860be85a6be739b3f6683139dc93e84de7fd /tests/run.py
parentfd77019bad3bc2f829a83b25e75cf61ddcc544a1 (diff)
downloadpygments-4f20affc8e7133fc897c754ea8d5ef403ab44399.tar.gz
[svn] Add a new test for pygments.util, fix coverage test.
Diffstat (limited to 'tests/run.py')
-rw-r--r--tests/run.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/run.py b/tests/run.py
index debaaf7a..457a97a1 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -66,8 +66,6 @@ def run_tests(with_coverage=False):
# needed to avoid confusion involving atexit handlers
import logging
- #orig_modules = sys.modules.keys()
-
if sys.argv[1:]:
# test only files given on cmdline
files = [entry + '.py' for entry in sys.argv[1:] if entry.startswith('test_')]
@@ -104,8 +102,7 @@ def run_tests(with_coverage=False):
for name, thing in globs.iteritems():
if name.endswith('Test'):
tests.append((name, unittest.makeSuite(thing)))
- # PY24: use key keyword arg
- tests.sort(lambda x, y: cmp(x[0], y[0]))
+ tests.sort()
suite = unittest.TestSuite()
suite.addTests([x[1] for x in tests])
runner.run(suite)