exclude Python regression tests from Python doctest runs
authorStefan Behnel <scoder@users.berlios.de>
Wed, 3 Nov 2010 15:09:26 +0000 (16:09 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 3 Nov 2010 15:09:26 +0000 (16:09 +0100)
runtests.py

index d07d13a4f915820e2c6ffaa049d520bb839e806d..8de9b204fd98a7d2cefc783af62888bdfc475278 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') 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