Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.7
Changeset: r98481:17f00b954798
Date: 2020-01-07 14:13 +0100
http://bitbucket.org/pypy/pypy/changeset/17f00b954798/
Log: no reason to not follow cpython exactly
diff --git a/pypy/objspace/std/objectobject.py
b/pypy/objspace/std/objectobject.py
--- a/pypy/objspace/std/objectobject.py
+++ b/pypy/objspace/std/objectobject.py
@@ -109,7 +109,7 @@
if (w_parent_init is space.w_object or
w_parent_new is not space.w_object):
raise oefmt(space.w_TypeError,
- "%s() takes no parameters", w_type.name)
+ "%s() takes no arguments", w_type.name)
if w_type.is_abstract():
_abstract_method_error(space, w_type)
return space.allocate_instance(W_ObjectObject, w_type)
diff --git a/pypy/objspace/std/test/test_obj.py
b/pypy/objspace/std/test/test_obj.py
--- a/pypy/objspace/std/test/test_obj.py
+++ b/pypy/objspace/std/test/test_obj.py
@@ -371,7 +371,7 @@
with raises(TypeError) as excinfo:
A(1)
- assert "A() takes no parameters" in str(excinfo.value)
+ assert "A() takes no arguments" in str(excinfo.value)
def test_isinstance_shortcut():
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit