From 7115c1ba16aceabe2ca646da0d7bfef2feb7d384 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 3 Nov 2010 15:51:56 +0100 Subject: [PATCH] only run pure doctests in runnable tests directories --- runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 6945ddbf..d07d13a4 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'): + if filename.endswith('.py') and context in TEST_RUN_DIRS: # additionally test file in real Python suite.addTest(PureDoctestTestCase(module, os.path.join(path, filename))) return suite -- 2.26.2