[Erp5-report] r7332 - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 18 10:53:20 CEST 2006
Author: alex
Date: Thu May 18 10:53:16 2006
New Revision: 7332
URL: http://svn.erp5.org?rev=7332&view=rev
Log:
Fixed wrong logic.
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=7332&r1=7331&r2=7332&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py Thu May 18 10:53:16 2006
@@ -118,7 +118,7 @@
attr = getattr(m, attr_name)
if (type(attr) == type(type)) and (hasattr(attr, '__module__')) and \
(attr.__module__ == test_module) :
- if test_class_list is not None and attr.__name__ in test_class_list:
+ if test_class_list is None or attr.__name__ in test_class_list:
suite.addTest(unittest.makeSuite(attr))
return TestRunner().run(suite)
More information about the Erp5-report
mailing list