diff options
author | gbrandl <devnull@localhost> | 2006-10-28 11:39:07 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2006-10-28 11:39:07 +0200 |
commit | 186a861c424c8bbbaf2bfa5786a7c2dc9488e0ff (patch) | |
tree | 6f0726b57a85b5024a1b0ac71a1ea62e82882f3a /tests | |
parent | 7643e3657c557da72dada0f3ae3700b8a255206c (diff) | |
download | pygments-186a861c424c8bbbaf2bfa5786a7c2dc9488e0ff.tar.gz |
[svn] Py2.3 fixes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run.py | 5 |
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) |