Commit cc830779 authored by Julien Muchembled's avatar Julien Muchembled

traceback provides format_exc if we only want the text displayed by print_exc

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41595 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6656824c
......@@ -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.
......
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