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 2016-02-13 17:55:26 +02:00
rodzic d973c1bc12
commit 419bb26ddc
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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