[FIX] run_unit_tests lying about its return value: it only ever returns a bool, never None

bzr revid: xmo@openerp.com-20140218095632-r4aq7gnzj4hq9u64
This commit is contained in:
Xavier Morel
2014-02-18 10:56:32 +01:00
parent 71259f09f4
commit 33076a34aa
+3 -2
View File
@@ -356,8 +356,9 @@ current_test = None
def run_unit_tests(module_name, dbname):
"""
Return True or False if some tests were found and succeeded or failed.
Return None if no test was found.
:returns: ``True`` if all of ``module_name``'s tests succeeded, ``False``
if any of them failed.
:rtype: bool
"""
global current_test
current_test = module_name