[pypy-commit] pypy remove-remaining-smm: Remove AppTestKeywordsToBuiltinSanity. I don't think it makes any sense nowadays.

Manuel Jacob noreply at buildbot.pypy.org
Tue Feb 25 15:28:21 CET 2014


Author: Manuel Jacob
Branch: remove-remaining-smm
Changeset: r69423:eb5377110c02
Date: 2014-02-25 15:27 +0100
http://bitbucket.org/pypy/pypy/changeset/eb5377110c02/

Log:	Remove AppTestKeywordsToBuiltinSanity. I don't think it makes any
	sense nowadays.

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
@@ -823,46 +823,3 @@
         assert space.is_true(w_res)
         assert len(called) == 1
         assert isinstance(called[0], argument.Arguments)
-
-
-class AppTestKeywordsToBuiltinSanity(object):
-
-    def test_type(self):
-        class X(object):
-            def __init__(self, **kw):
-                pass
-        clash = type.__call__.func_code.co_varnames[0]
-
-        X(**{clash: 33})
-        type.__call__(X, **{clash: 33})
-
-    def test_object_new(self):
-        class X(object):
-            def __init__(self, **kw):
-                pass
-        clash = object.__new__.func_code.co_varnames[0]
-
-        X(**{clash: 33})
-        object.__new__(X, **{clash: 33})
-
-
-    def test_dict_new(self):
-        clash = dict.__new__.func_code.co_varnames[0]
-
-        dict(**{clash: 33})
-        dict.__new__(dict, **{clash: 33})
-
-    def test_dict_init(self):
-        d = {}
-        clash = dict.__init__.func_code.co_varnames[0]
-
-        d.__init__(**{clash: 33})
-        dict.__init__(d, **{clash: 33})
-
-    def test_dict_update(self):
-        d = {}
-        clash = dict.update.func_code.co_varnames[0]
-
-        d.update(**{clash: 33})
-        dict.update(d, **{clash: 33})
-


More information about the pypy-commit mailing list