Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r90073:292382c6aeef
Date: 2017-02-13 10:02 +0100
http://bitbucket.org/pypy/pypy/changeset/292382c6aeef/
Log: fix for error messages
diff --git a/lib-python/3/test/test_complex.py
b/lib-python/3/test/test_complex.py
--- a/lib-python/3/test/test_complex.py
+++ b/lib-python/3/test/test_complex.py
@@ -330,11 +330,13 @@
self.assertRaises(ValueError, complex, ")1+2j(")
self.assertRaisesRegex(
TypeError,
- "first argument must be a string or a number, not 'dict'",
+ "first argument must be a string or a number, not 'dict'" #
cpython
+ "|unsupported operand type for float\(\): 'dict'", # pypy
complex, {1:2}, 1)
self.assertRaisesRegex(
TypeError,
- "second argument must be a number, not 'dict'",
+ "second argument must be a number, not 'dict'" # cpython
+ "|unsupported operand type for float\(\): 'dict'", # pypy
complex, 1, {1:2})
# the following three are accepted by Python 2.6
self.assertRaises(ValueError, complex, "1..1j")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit