Commit d0d2ffa0 authored by Stefan Behnel's avatar Stefan Behnel

do not try to run doctests in test_*.py unit test files

parent 20c7084a
...@@ -555,7 +555,7 @@ class TestBuilder(object): ...@@ -555,7 +555,7 @@ class TestBuilder(object):
for test in self.build_tests(test_class, path, workdir, for test in self.build_tests(test_class, path, workdir,
module, mode == 'error', tags): module, mode == 'error', tags):
suite.addTest(test) suite.addTest(test)
if mode == 'run' and ext == '.py' and not self.cython_only: if mode == 'run' and ext == '.py' and not self.cython_only and not filename.startswith('test_'):
# additionally test file in real Python # additionally test file in real Python
suite.addTest(PureDoctestTestCase(module, os.path.join(path, filename))) suite.addTest(PureDoctestTestCase(module, os.path.join(path, filename)))
......
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