summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-10-28 11:39:07 +0200
committergbrandl <devnull@localhost>2006-10-28 11:39:07 +0200
commit186a861c424c8bbbaf2bfa5786a7c2dc9488e0ff (patch)
tree6f0726b57a85b5024a1b0ac71a1ea62e82882f3a /tests
parent7643e3657c557da72dada0f3ae3700b8a255206c (diff)
downloadpygments-186a861c424c8bbbaf2bfa5786a7c2dc9488e0ff.tar.gz
[svn] Py2.3 fixes.
Diffstat (limited to 'tests')
-rw-r--r--tests/run.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/run.py b/tests/run.py
index 20bda02e..f21b2a39 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -90,9 +90,10 @@ def run_tests():
for name, thing in globs.iteritems():
if name.endswith('Test'):
tests.append((name, unittest.makeSuite(thing)))
- tests.sort(key=lambda x: x[0])
+ # PY24: use key keyword arg
+ tests.sort(lambda x, y: cmp(x[0], y[0]))
suite = unittest.TestSuite()
- suite.addTests(x[1] for x in tests)
+ suite.addTests([x[1] for x in tests])
runner.run(suite)
except Exception, exc:
err(testfile, 'running test', exc)