Skip to content
Snippets Groups Projects
Commit 419bb26d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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.
parent d973c1bc
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ def print_exc(e):
# basic exception message
try:
XXX
1/0
except Exception as e:
print('caught')
print_exc(e)
......@@ -32,7 +32,7 @@ except Exception as e:
def f():
g()
def g():
YYY
2/0
try:
f()
except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment