[Erp5-report] r17632 - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 15 15:48:38 CET 2007


Author: alex
Date: Thu Nov 15 15:48:37 2007
New Revision: 17632

URL: http://svn.erp5.org?rev=17632&view=rev
Log:
use re.search instead of re.match for run_only parameter. the more strict "match" is not really required here.

Modified:
    erp5/trunk/products/ERP5Type/tests/runUnitTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runUnitTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runUnitTest.py?rev=17632&r1=17631&r2=17632&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py Thu Nov 15 15:48:37 2007
@@ -266,7 +266,7 @@
     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
 




More information about the Erp5-report mailing list