self.success = False
self.runCompileTest()
failures, errors = len(result.failures), len(result.errors)
- self.run_tests(result)
+ if not self.cython_only:
+ self.run_tests(result)
if failures == len(result.failures) and errors == len(result.errors):
# No new errors...
self.success = True
pass
def run_tests(self, result):
- if not self.cython_only:
- self.run_doctests(self.module, result)
+ self.run_doctests(self.module, result)
def run_doctests(self, module_name, result):
def run_test(result):
return "compiling (%s) tests in %s" % (self.language, self.module)
def run_tests(self, result):
- if not self.cython_only:
- unittest.defaultTestLoader.loadTestsFromName(self.module).run(result)
+ unittest.defaultTestLoader.loadTestsFromName(self.module).run(result)
class CythonPyregrTestCase(CythonRunTestCase):
self.run_doctests(module, result)
def run_tests(self, result):
- if self.cython_only:
- return
try:
from test import support
except ImportError: # Python2.x