Skip to content

Commit b41f871

Browse files
committed
Add tests for traceback
1 parent 5565822 commit b41f871

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/snippets/stdlib_traceback.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import traceback
2+
3+
try:
4+
1/0
5+
except ZeroDivisionError as ex:
6+
traceback.print_tb(ex.__traceback__)

0 commit comments

Comments
 (0)