Commit 8ba1ddd9 authored by Alexandre Boeglin's avatar Alexandre Boeglin

use re.search instead of re.match for run_only parameter. the more strict...

use re.search instead of re.match for run_only parameter. the more strict "match" is not really required here.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17632 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cde86291
......@@ -266,7 +266,7 @@ def runUnitTestList(test_list, verbosity=1):
def run(self, *args, **kw):
test_method_name = self.id().rsplit('.', 1)[-1]
for valid_test_method_name_re in test_method_list:
if re.match(valid_test_method_name_re, test_method_name):
if re.search(valid_test_method_name_re, test_method_name):
return run_orig(self, *args, **kw)
profiler.Profiled.__call__ = run
......
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