Browse Source

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.
pull/1873/merge
Paul Sokolovsky 9 years ago
parent
commit
419bb26ddc
  1. 4
      tests/misc/print_exception.py

4
tests/misc/print_exception.py

@ -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:

Loading…
Cancel
Save