Autotest: fixes bisect-helper for python 3.10

This commit is contained in:
Luiz Georg 2022-09-14 17:13:35 -03:00 committed by Peter Barker
parent 91afa19543
commit be9e0aefd8

View File

@ -65,7 +65,7 @@ import traceback
def get_exception_stacktrace(e): def get_exception_stacktrace(e):
if sys.version_info[0] >= 3: if sys.version_info[0] >= 3:
ret = "%s\n" % e ret = "%s\n" % e
ret += ''.join(traceback.format_exception(etype=type(e), ret += ''.join(traceback.format_exception(type(e),
value=e, value=e,
tb=e.__traceback__)) tb=e.__traceback__))
return ret return ret