Author: Maciej Fijalkowski <[email protected]>
Branch: py3.3
Changeset: r79653:9cfeff70794d
Date: 2015-09-16 14:46 +0200
http://bitbucket.org/pypy/pypy/changeset/9cfeff70794d/
Log: Merged in vaibhavsood12/pypy/py3.3_test_case_fixes (pull request
#331)
Fix test case for py3.3 branch
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
@@ -335,7 +335,7 @@
except TypeError as e:
msg = str(e)
msg = msg.replace('one', '1') # CPython puts 'one', PyPy '1'
- assert "len() takes exactly 1 argument (0 given)" in msg
+ assert "len() missing 1 required positional argument: 'obj'" in msg
else:
assert 0, "did not raise"
@@ -344,7 +344,7 @@
except TypeError as e:
msg = str(e)
msg = msg.replace('one', '1') # CPython puts 'one', PyPy '1'
- assert "len() takes exactly 1 argument (2 given)" in msg
+ assert "len() takes 1 positional argument but 2 were given" in msg
else:
assert 0, "did not raise"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit