changeset 70:acc2a8647905

Updated regexp in runtests.py
author Sigurd Meldgaard <stm@daimi.au.dk>
date Wed, 27 May 2009 13:54:48 +0200
parents 2ae98ac0f77f
children a34b7936cf7f
files runtests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtests.py	Wed May 27 13:46:32 2009 +0200
+++ b/runtests.py	Wed May 27 13:54:48 2009 +0200
@@ -5,7 +5,7 @@
 def main():
     tests = []
     for f in os.listdir('pysmcl/test/unit/'):
-        if re.match(r'test_.*\.py', f):
+        if re.match(r'^test_.*\.py$', f):
             m = __import__('pysmcl.test.unit.' + f[:-3], globals(), locals(), ['*'])
             tests.append(unittest.defaultTestLoader.loadTestsFromModule(m))
     h = unittest.TextTestRunner()