mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
This commit is contained in:
parent
fc85c92a85
commit
ac3625fcb9
16 changed files with 36 additions and 58 deletions
|
@ -233,7 +233,7 @@ def checkop(expr, a, b, value, fuzz = 1e-6):
|
|||
try:
|
||||
result = eval(expr)
|
||||
except:
|
||||
result = sys.exc_type
|
||||
result = sys.exc_info()[0]
|
||||
print '->', result
|
||||
if isinstance(result, str) or isinstance(value, str):
|
||||
ok = (result == value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue