Author: Manuel Jacob Branch: remove-remaining-smm Changeset: r69425:c890c07b80a9 Date: 2014-02-25 16:18 +0100 http://bitbucket.org/pypy/pypy/changeset/c890c07b80a9/
Log: I think this is what we actually want to test: normally providing a 'self' keyword when calling a type fails, but not if the first keyword of the type's __init__ method is renamed to something else than 'self'. diff --git a/pypy/interpreter/test/test_gateway.py b/pypy/interpreter/test/test_gateway.py --- a/pypy/interpreter/test/test_gateway.py +++ b/pypy/interpreter/test/test_gateway.py @@ -826,10 +826,9 @@ class AppTestKeywordsToBuiltinSanity(object): - def test_type(self): class X(object): - def __init__(self, **kw): + def __init__(myself, **kw): pass clash = type.__call__.func_code.co_varnames[0] @@ -845,7 +844,6 @@ X(**{clash: 33}) object.__new__(X, **{clash: 33}) - def test_dict_new(self): clash = dict.__new__.func_code.co_varnames[0] @@ -865,4 +863,3 @@ d.update(**{clash: 33}) dict.update(d, **{clash: 33}) - _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit