Skip to content

Commit 419bb26

Browse files
committed
tests/print_exception: Use exception which prints the same regardless of config.
NameError may either include offending name or not. Unfortunately, this change makes test float-dependent. And using integer division leads to different error message than CPython.
1 parent d973c1b commit 419bb26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/misc/print_exception.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def print_exc(e):
2323

2424
# basic exception message
2525
try:
26-
XXX
26+
1/0
2727
except Exception as e:
2828
print('caught')
2929
print_exc(e)
@@ -32,7 +32,7 @@ def print_exc(e):
3232
def f():
3333
g()
3434
def g():
35-
YYY
35+
2/0
3636
try:
3737
f()
3838
except Exception as e:

0 commit comments

Comments
 (0)