Commit 5f5ce0d8 authored by Stefan Behnel's avatar Stefan Behnel

only run Python scripts from tests/pyregr/ that start with 'test_' (i.e. that contain unit tests)

parent 505a463f
...@@ -80,6 +80,8 @@ class TestBuilder(object): ...@@ -80,6 +80,8 @@ class TestBuilder(object):
for filename in filenames: for filename in filenames:
if not (filename.endswith(".pyx") or filename.endswith(".py")): if not (filename.endswith(".pyx") or filename.endswith(".py")):
continue continue
if context == 'pyregr' and not filename.startswith('test_'):
continue
module = os.path.splitext(filename)[0] module = os.path.splitext(filename)[0]
fqmodule = "%s.%s" % (context, module) fqmodule = "%s.%s" % (context, module)
if not [ 1 for match in self.selectors if not [ 1 for match in self.selectors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment