Author: Vaibhav Sood <[email protected]>
Branch: py3.3_test_case_fixes
Changeset: r79652:c5ef49e849b1
Date: 2015-08-24 15:09 +0530
http://bitbucket.org/pypy/pypy/changeset/c5ef49e849b1/

Log:    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

Reply via email to