Author: Manuel Jacob <m...@manueljacob.de> Branch: py3k Changeset: r83799:9f5913d6c6c2 Date: 2016-04-20 23:37 +0200 http://bitbucket.org/pypy/pypy/changeset/9f5913d6c6c2/
Log: 2to3 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 @@ -1176,22 +1176,26 @@ """ def test_crash_mro_without_object_1(self): + """ class X(type): def mro(self): return [self] - class C: - __metaclass__ = X + class C(metaclass=X): + pass e = raises(TypeError, C) # the lookup of '__new__' fails assert str(e.value) == "cannot create 'C' instances" + """ def test_crash_mro_without_object_2(self): + """ class X(type): def mro(self): return [self, int] - class C(int): - __metaclass__ = X + class C(int, metaclass=X): + pass C() # the lookup of '__new__' succeeds in 'int', # but the lookup of '__init__' fails + """ class AppTestWithMethodCacheCounter: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit