diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 7094292386d15e330a09ad9aa8dc4afb8f499266..6e319660e82554eb7278f7796c3138ad90462498 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -973,10 +973,7 @@ class ERP5TypeTestCase(ProcessingNodeTestCase, PortalTestCase): del self.portal, self.app ZopeTestCase.close(app) except: - f = StringIO() - traceback.print_exc(file=f) - ZopeTestCase._print(f.getvalue()) - f.close() + ZopeTestCase._print(traceback.format_exc()) failed_portal_installation[portal_name] = 1 ZopeTestCase._print('Ran Unit test of %s (installation failed)\n' % title) # run_unit_test depends on this string.