[pypy-commit] pypy py3.3_test_case_fixes: Fix test case for py3.3 branch
vaibhavsood12
noreply at buildbot.pypy.org
Wed Sep 16 14:46:11 CEST 2015
Author: Vaibhav Sood <vaibhav_sood at persistent.com>
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"
More information about the pypy-commit
mailing list