[pypy-commit] pypy py3k: we no longer have oldstyle classes
antocuni
noreply at buildbot.pypy.org
Wed Mar 21 20:40:23 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53874:2d9fd333072e
Date: 2012-03-21 20:35 +0100
http://bitbucket.org/pypy/pypy/changeset/2d9fd333072e/
Log: we no longer have oldstyle classes
diff --git a/pypy/objspace/std/test/test_typeobject.py b/pypy/objspace/std/test/test_typeobject.py
--- a/pypy/objspace/std/test/test_typeobject.py
+++ b/pypy/objspace/std/test/test_typeobject.py
@@ -499,7 +499,7 @@
def test_abstract_mro(self):
"""
- class A1: # old-style class
+ class A1: # in py3k is a new-style class
pass
class B1(A1):
pass
@@ -509,8 +509,8 @@
pass
class E1(D1, object, metaclass=type):
pass
- # old-style MRO in the classical part of the parent hierarchy
- assert E1.__mro__ == (E1, D1, B1, A1, C1, object)
+ # new-style MRO, contrarily to python2
+ assert E1.__mro__ == (E1, D1, B1, C1, A1, object)
"""
def test_nodoc(self):
More information about the pypy-commit
mailing list