Author: Antonio Cuni <[email protected]>
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"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit