only run Python scripts from tests/pyregr/ that start with 'test_' (i.e. that contain...
authorStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 06:59:31 +0000 (08:59 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 06:59:31 +0000 (08:59 +0200)
runtests.py

index 11037acc17cf86526bd45d29ef8b688dcf5e2e71..e21df3a58ee87e433ef15efa2c1b632e05b7e5b6 100644 (file)
@@ -80,6 +80,8 @@ class TestBuilder(object):
         for filename in filenames:
             if not (filename.endswith(".pyx") or filename.endswith(".py")):
                 continue
+            if context == 'pyregr' and not filename.startswith('test_'):
+                continue
             module = os.path.splitext(filename)[0]
             fqmodule = "%s.%s" % (context, module)
             if not [ 1 for match in self.selectors