[pypy-commit] pypy py3k: fix the syntax of these tests
antocuni
noreply at buildbot.pypy.org
Mon Feb 20 20:35:03 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
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:
More information about the pypy-commit
mailing list