Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52709:0807d354c622
Date: 2012-02-21 00:11 +0100
http://bitbucket.org/pypy/pypy/changeset/0807d354c622/
Log: fix syntax
diff --git a/pypy/interpreter/test/test_typedef.py
b/pypy/interpreter/test/test_typedef.py
--- a/pypy/interpreter/test/test_typedef.py
+++ b/pypy/interpreter/test/test_typedef.py
@@ -13,7 +13,7 @@
# XXX why is this called newstring?
import sys
def f():
- raise TypeError, "hello"
+ raise TypeError("hello")
def g():
f()
@@ -23,7 +23,7 @@
except:
typ,val,tb = sys.exc_info()
else:
- raise AssertionError, "should have raised"
+ raise AssertionError("should have raised")
assert hasattr(tb, 'tb_frame')
assert hasattr(tb, 'tb_lasti')
assert hasattr(tb, 'tb_lineno')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit