[pypy-commit] pypy py3k: again, we need to subclass Exception to raise/catch exceptions

antocuni noreply at buildbot.pypy.org
Mon Feb 13 18:27:12 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52421:6e48dcb29be4
Date: 2012-02-11 11:53 +0100
http://bitbucket.org/pypy/pypy/changeset/6e48dcb29be4/

Log:	again, we need to subclass Exception to raise/catch exceptions

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
@@ -165,7 +165,7 @@
             pass
 
     def test_catch_tuple(self):
-        class A:
+        class A(Exception):
             pass
         
         try:


More information about the pypy-commit mailing list