Python 2.3 fixes
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 16 Jul 2008 03:54:22 +0000 (20:54 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 16 Jul 2008 03:54:22 +0000 (20:54 -0700)
Cython/Compiler/Nodes.py
runtests.py

index d389bd6c387cbcf41a7e261c6174f5a96b758c8f..e94101cdefe3200375cb96d94fa8a1ece01c75ef 100644 (file)
@@ -177,7 +177,7 @@ class Node(object):
             if isinstance(x, Node):
                 return x.dump(level)
             elif isinstance(x, list):
-                return "[%s]" % ", ".join(dump_child(item, level) for item in x)
+                return "[%s]" % ", ".join([dump_child(item, level) for item in x])
             else:
                 return repr(x)
             
index 50713f03a39d1850db9ab4a82cb2634c1e255dbf..191c437f88ea136ee45ff7549b48f59efb6c882a 100644 (file)
@@ -295,7 +295,7 @@ def collect_unittests(path, suite, selectors):
                     module = __import__(modulename)
                     for x in modulename.split('.')[1:]:
                         module = getattr(module, x)
-                    suite.addTests(loader.loadTestsFromModule(module))
+                    suite.addTests([loader.loadTestsFromModule(module)])
 
 if __name__ == '__main__':
     from optparse import OptionParser
@@ -369,7 +369,7 @@ if __name__ == '__main__':
     if options.filetests:
         filetests = TestBuilder(ROOTDIR, WORKDIR, selectors,
                                 options.annotate_source, options.cleanup_workdir)
-        test_suite.addTests(filetests.build_suite())
+        test_suite.addTests([filetests.build_suite()])
 
     unittest.TextTestRunner(verbosity=options.verbosity).run(test_suite)