Commit 581671b5 authored by Stefan Behnel's avatar Stefan Behnel

exclude Python regression tests from Python doctest runs

parent 30314265
......@@ -191,7 +191,7 @@ class TestBuilder(object):
for test in self.build_tests(test_class, path, workdir,
module, expect_errors):
suite.addTest(test)
if filename.endswith('.py') and context in TEST_RUN_DIRS:
if context == 'run' and filename.endswith('.py'):
# additionally test file in real Python
suite.addTest(PureDoctestTestCase(module, os.path.join(path, filename)))
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