fix test runner to correctly load the unit tests from CPython's regression test suite
authorStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 07:12:46 +0000 (09:12 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 07:12:46 +0000 (09:12 +0200)
runtests.py

index e21df3a58ee87e433ef15efa2c1b632e05b7e5b6..50713f03a39d1850db9ab4a82cb2634c1e255dbf 100644 (file)
@@ -265,7 +265,7 @@ class CythonUnitTestCase(CythonCompileTestCase):
         result.startTest(self)
         try:
             self.runCompileTest()
-            unittest.loadTestsFromName(self.module).run(result)
+            unittest.defaultTestLoader.loadTestsFromName(self.module).run(result)
         except Exception:
             result.addError(self, sys.exc_info())
             result.stopTest(self)