Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52682:c154f7dc6ef0
Date: 2012-02-20 20:14 +0100
http://bitbucket.org/pypy/pypy/changeset/c154f7dc6ef0/

Log:    fix the syntax of these tests

diff --git a/pypy/interpreter/test/test_exceptcomp.py 
b/pypy/interpreter/test/test_exceptcomp.py
--- a/pypy/interpreter/test/test_exceptcomp.py
+++ b/pypy/interpreter/test/test_exceptcomp.py
@@ -7,7 +7,7 @@
 
     def test_exception(self):
         try:
-            raise TypeError, "nothing"
+            raise TypeError("nothing")
         except TypeError:
             pass
         except:
@@ -15,7 +15,7 @@
 
     def test_exceptionfail(self):
         try:
-            raise TypeError, "nothing"
+            raise TypeError("nothing")
         except KeyError:
             self.fail("Different exceptions match.")
         except TypeError:
@@ -47,7 +47,7 @@
         class UserExcept(Exception):
             pass
         try:
-            raise UserExcept, "nothing"
+            raise UserExcept("nothing")
         except UserExcept:
             pass
         except:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to