mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Raise statement normalization in Lib/test/.
This commit is contained in:
parent
e0281cab81
commit
3add4d78ff
47 changed files with 218 additions and 218 deletions
|
@ -314,7 +314,7 @@ class RaisingTraceFuncTestCase(unittest.TestCase):
|
|||
def g(frame, why, extra):
|
||||
if (why == 'line' and
|
||||
frame.f_lineno == f.__code__.co_firstlineno + 2):
|
||||
raise RuntimeError, "i am crashing"
|
||||
raise RuntimeError("i am crashing")
|
||||
return g
|
||||
|
||||
sys.settrace(g)
|
||||
|
@ -558,7 +558,7 @@ def no_jump_without_trace_function():
|
|||
raise
|
||||
else:
|
||||
# Something's wrong - the expected exception wasn't raised.
|
||||
raise RuntimeError, "Trace-function-less jump failed to fail"
|
||||
raise RuntimeError("Trace-function-less jump failed to fail")
|
||||
|
||||
|
||||
class JumpTestCase(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue