Commit 88318385 authored by Julien Muchembled's avatar Julien Muchembled

runUnitTest: exit status can't be used to return an arbitrary number

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37063 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 94033e04
......@@ -715,7 +715,7 @@ def main():
_print("Profiler support is not available from ZopeTestCase in Zope 2.12\n")
else:
profiler.print_stats()
return result and len(result.failures) + len(result.errors) or 0
return result and len(result.failures) + len(result.errors) and 1 or 0
if __name__ == '__main__':
# Force stdout to be totally unbuffered.
......
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