[Erp5-report] r37063 jm - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jul 12 18:06:43 CEST 2010
Author: jm
Date: Mon Jul 12 18:06:42 2010
New Revision: 37063
URL: http://svn.erp5.org?rev=37063&view=rev
Log:
runUnitTest: exit status can't be used to return an arbitrary number
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=37063&r1=37062&r2=37063&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] Mon Jul 12 18:06:42 2010
@@ -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.
More information about the Erp5-report
mailing list