Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r54548:823e45ade349
Date: 2012-04-19 16:35 +0200
http://bitbucket.org/pypy/pypy/changeset/823e45ade349/

Log:    oldstyle classes are gone, kill this test

diff --git a/pypy/objspace/std/test/test_versionedtype.py 
b/pypy/objspace/std/test/test_versionedtype.py
--- a/pypy/objspace/std/test/test_versionedtype.py
+++ b/pypy/objspace/std/test/test_versionedtype.py
@@ -147,39 +147,6 @@
         assert w_MODULE.version_tag() is not None
         assert w_OBJECT.version_tag() is not None
 
-    def test_version_tag_mixes_oldnew(self):
-        space = self.space
-        w_types = space.appexec([], """():
-        class A:
-            pass
-
-        class B(A, object):
-            pass
-
-        return A, B
-        """)
-        w_A, w_B = space.unpackiterable(w_types)
-        oldtag = w_B.version_tag()
-        space.setattr(w_A, space.wrap("x"), space.w_None)
-        newtag = w_B.version_tag()
-        if oldtag is not None:
-            assert newtag != oldtag
-
-        w_types = space.appexec([], """():
-        class A:
-            pass
-        class B(object):
-            pass
-
-        return A, B
-        """)
-        w_A, w_B = space.unpackiterable(w_types)
-        oldtag = w_B.version_tag()
-        assert oldtag is not None
-        space.setattr(w_B, space.wrap("__bases__"), space.newtuple([w_A, 
space.w_object]))
-        newtag = w_B.version_tag()
-        assert newtag is None
-
     def test_version_tag_of_modules(self):
         space = self.space
         w_mod = space.appexec([], """():
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to