[pypy-commit] pypy py3.5: Remove this test involving old style classes, which were removed in Python 3.0.
mjacob
pypy.commits at gmail.com
Sun Mar 26 15:14:00 EDT 2017
Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.5
Changeset: r90816:362dac153db1
Date: 2017-03-26 20:33 +0200
http://bitbucket.org/pypy/pypy/changeset/362dac153db1/
Log: Remove this test involving old style classes, which were removed in
Python 3.0.
diff --git a/pypy/module/cpyext/test/test_typeobject.py b/pypy/module/cpyext/test/test_typeobject.py
--- a/pypy/module/cpyext/test/test_typeobject.py
+++ b/pypy/module/cpyext/test/test_typeobject.py
@@ -1197,25 +1197,3 @@
pass
bases = module.foo(C)
assert bases == (A, B)
-
- def test_multiple_inheritance_old_style_base(self):
- module = self.import_extension('foo', [
- ("foo", "METH_O",
- '''
- PyTypeObject *tp;
- tp = (PyTypeObject*)args;
- Py_INCREF(tp->tp_bases);
- return tp->tp_bases;
- '''
- )])
- # used to segfault after some iterations
- for i in range(11):
- print i
- class A(object):
- pass
- class B:
- pass
- class C(A, B):
- pass
- bases = module.foo(C)
- assert bases == (A, B)
More information about the pypy-commit
mailing list