Commit d2dee063 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed wrong logic.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7332 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e98a5d2c
...@@ -118,7 +118,7 @@ def runUnitTestList(test_list) : ...@@ -118,7 +118,7 @@ def runUnitTestList(test_list) :
attr = getattr(m, attr_name) attr = getattr(m, attr_name)
if (type(attr) == type(type)) and (hasattr(attr, '__module__')) and \ if (type(attr) == type(type)) and (hasattr(attr, '__module__')) and \
(attr.__module__ == test_module) : (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)) suite.addTest(unittest.makeSuite(attr))
return TestRunner().run(suite) return TestRunner().run(suite)
......
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