Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1155:5de8873f4eb6
Date: 2013-02-13 11:24 +0100
http://bitbucket.org/cffi/cffi/changeset/5de8873f4eb6/
Log: Support the PyPy error message here
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -1322,7 +1322,8 @@
p = newp(BStructPtr, [12])
assert p.a1 == 12
e = py.test.raises(TypeError, newp, BStructPtr, [None])
- assert "an integer is required" in str(e.value)
+ assert ("an integer is required" in str(e.value) or
+ "unsupported operand type for int(): 'NoneType'" in str(e.value)) #PyPy
py.test.raises(TypeError, 'p.a1 = "def"')
if sys.version_info < (3,):
BEnum2 = new_enum_type(unicode("foo"), (unicode('abc'),), (5,))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit