Raise statement normalization in Lib/test/.

This commit is contained in:
Collin Winter 2007-08-29 23:37:32 +00:00
parent e0281cab81
commit 3add4d78ff
47 changed files with 218 additions and 218 deletions

View file

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