[pypy-commit] pypy py3.5: Remove this test testing PyClass_New, which was removed in Python 3.x.

mjacob pypy.commits at gmail.com
Sun Mar 26 15:13:58 EDT 2017


Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.5
Changeset: r90815:0456fd144e9f
Date: 2017-03-26 20:26 +0200
http://bitbucket.org/pypy/pypy/changeset/0456fd144e9f/

Log:	Remove this test testing PyClass_New, which was removed in Python
	3.x.

diff --git a/pypy/module/cpyext/test/test_classobject.py b/pypy/module/cpyext/test/test_classobject.py
--- a/pypy/module/cpyext/test/test_classobject.py
+++ b/pypy/module/cpyext/test/test_classobject.py
@@ -27,15 +27,3 @@
         InstanceMethod.testmethod.attribute = "test"
         assert testfunction.attribute == "test"
         raises(AttributeError, setattr, inst.testmethod, "attribute", "test")
-
-    def test_pyclass_new_no_bases(self):
-        module = self.import_extension('foo', [
-            ("new_foo", "METH_O",
-             """
-                 return PyClass_New(NULL, PyDict_New(), args);
-             """)])
-        FooClass = module.new_foo("FooClass")
-        class Cls1:
-            pass
-        assert type(FooClass) is type(Cls1)
-        assert FooClass.__bases__ == Cls1.__bases__


More information about the pypy-commit mailing list