Commit e42ddaa8 authored by Stefan Behnel's avatar Stefan Behnel

fix test runner to correctly load the unit tests from CPython's regression test suite

parent 5f5ce0d8
...@@ -265,7 +265,7 @@ class CythonUnitTestCase(CythonCompileTestCase): ...@@ -265,7 +265,7 @@ class CythonUnitTestCase(CythonCompileTestCase):
result.startTest(self) result.startTest(self)
try: try:
self.runCompileTest() self.runCompileTest()
unittest.loadTestsFromName(self.module).run(result) unittest.defaultTestLoader.loadTestsFromName(self.module).run(result)
except Exception: except Exception:
result.addError(self, sys.exc_info()) result.addError(self, sys.exc_info())
result.stopTest(self) result.stopTest(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment