From 5f5ce0d8797e2d9b51015c0f98ac0ecc928be83e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 11 Jul 2008 08:59:31 +0200 Subject: [PATCH] only run Python scripts from tests/pyregr/ that start with 'test_' (i.e. that contain unit tests) --- runtests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtests.py b/runtests.py index 11037acc..e21df3a5 100644 --- a/runtests.py +++ b/runtests.py @@ -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 -- 2.26.2