refactor(test_traceback): delete unused function get_exception

This commit is contained in:
Ruan Comelli 2025-02-10 18:19:54 -03:00
parent 43d3b04725
commit 0e0ab8a51f
No known key found for this signature in database
GPG key ID: 4A151BD1EBFBF6CD

View file

@ -73,23 +73,6 @@ def test_no_exception():
tb = Traceback()
def get_exception() -> Traceback:
def bar(a):
print(1 / a)
def foo(a):
bar(a)
try:
try:
foo(0)
except:
foobarbaz
except:
tb = Traceback()
return tb
def test_print_exception():
console = Console(width=100, file=io.StringIO())
try: