Commit 7115c1ba authored by Stefan Behnel's avatar Stefan Behnel

only run pure doctests in runnable tests directories

parent 5986efd2
...@@ -191,7 +191,7 @@ class TestBuilder(object): ...@@ -191,7 +191,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, expect_errors): module, expect_errors):
suite.addTest(test) suite.addTest(test)
if filename.endswith('.py'): if filename.endswith('.py') and context in TEST_RUN_DIRS:
# 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)))
return suite return suite
......
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