mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
refactor(test_traceback): delete unused function get_exception
This commit is contained in:
parent
43d3b04725
commit
0e0ab8a51f
1 changed files with 0 additions and 17 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue