[pypy-commit] pypy py3k: a passing test, from cpython's test suite
antocuni
noreply at buildbot.pypy.org
Tue Feb 14 17:28:14 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52463:eabaea0df557
Date: 2012-02-14 14:07 +0100
http://bitbucket.org/pypy/pypy/changeset/eabaea0df557/
Log: a passing test, from cpython's test suite
diff --git a/pypy/interpreter/test/test_raise.py b/pypy/interpreter/test/test_raise.py
--- a/pypy/interpreter/test/test_raise.py
+++ b/pypy/interpreter/test/test_raise.py
@@ -72,7 +72,6 @@
assert sys.exc_info()[0] is ValueError
assert sys.exc_info() == (None, None, None)
-
def test_raise_with___traceback__(self):
import sys
try:
@@ -162,6 +161,17 @@
assert sys.exc_info()[2].tb_next is some_traceback
""")
+ def test_nested_reraise(self):
+ raises(TypeError, """
+ def nested_reraise():
+ raise
+ try:
+ raise TypeError("foo")
+ except:
+ nested_reraise()
+ """)
+
+
def test_userclass(self):
# new-style classes can't be raised unless they inherit from
# BaseException
More information about the pypy-commit
mailing list