Change test so it would not print traceback

This commit is contained in:
Aviv Palivoda
2019-10-27 22:47:18 +02:00
parent 1c4e501814
commit 91bd78d8ca

View File

@@ -3,4 +3,5 @@ import traceback
try:
1/0
except ZeroDivisionError as ex:
traceback.print_tb(ex.__traceback__)
tb = traceback.format_list(traceback.extract_tb(ex.__traceback__))
assert len(tb) == 1