only run pure doctests in runnable tests directories
authorStefan Behnel <scoder@users.berlios.de>
Wed, 3 Nov 2010 14:51:56 +0000 (15:51 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 3 Nov 2010 14:51:56 +0000 (15:51 +0100)
runtests.py

index 6945ddbf7c4eaea4dc9b570e71f00acee319c6d9..d07d13a4f915820e2c6ffaa049d520bb839e806d 100644 (file)
@@ -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