From 581671b5b48d56094f52d38edd1cb0e8e089abde Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 3 Nov 2010 16:09:26 +0100 Subject: [PATCH] exclude Python regression tests from Python doctest runs --- runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index d07d13a4..8de9b204 100644 --- a/runtests.py +++ b/runtests.py @@ -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 -- 2.26.2