[pypy-commit] pypy py3k: fix syntax

antocuni noreply at buildbot.pypy.org
Mon Feb 20 20:43:34 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52684:414902b2bf37
Date: 2012-02-20 20:37 +0100
http://bitbucket.org/pypy/pypy/changeset/414902b2bf37/

Log:	fix syntax

diff --git a/pypy/interpreter/test/test_function.py b/pypy/interpreter/test/test_function.py
--- a/pypy/interpreter/test/test_function.py
+++ b/pypy/interpreter/test/test_function.py
@@ -281,14 +281,14 @@
     def test_call_error_message(self):
         try:
             len()
-        except TypeError, e:
+        except TypeError as e:
             assert "len() takes exactly 1 argument (0 given)" in e.message
         else:
             assert 0, "did not raise"
 
         try:
             len(1, 2)
-        except TypeError, e:
+        except TypeError as e:
             assert "len() takes exactly 1 argument (2 given)" in e.message
         else:
             assert 0, "did not raise"


More information about the pypy-commit mailing list