From: Stefan Behnel Date: Wed, 3 Nov 2010 14:51:56 +0000 (+0100) Subject: only run pure doctests in runnable tests directories X-Git-Tag: 0.14.alpha0~246 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7115c1ba16aceabe2ca646da0d7bfef2feb7d384;p=cython.git only run pure doctests in runnable tests directories --- 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