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:
parent
d973c1bc12
commit
419bb26ddc
|
@ -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…
Reference in New Issue