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.
This commit is contained in:
Paul Sokolovsky 2016-02-13 17:55:26 +02:00
parent d973c1bc12
commit 419bb26ddc
1 changed files with 2 additions and 2 deletions

View File

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