summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_trace.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-29 23:37:32 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-29 23:37:32 (GMT)
commit3add4d78ff9f5de02e2c0de09efe9a9b5317539f (patch)
treec61c6a122b33537814bcc643300f10759fa81010 /Lib/test/test_trace.py
parente0281cab810c30a23cf2490704e0f85aa4751e83 (diff)
downloadcpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.zip
cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.gz
cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.bz2
Raise statement normalization in Lib/test/.
Diffstat (limited to 'Lib/test/test_trace.py')
-rw-r--r--Lib/test/test_trace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py
index 05e6e9e..f67da77 100644
--- a/Lib/test/test_trace.py
+++ b/Lib/test/test_trace.py
@@ -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):