forked from Rust-related/RustPython
Change test so it would not print traceback
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user