[pypy-svn] r57630 - pypy/dist/pypy/objspace/std/test
arigo at codespeak.net
arigo at codespeak.net
Tue Aug 26 13:50:07 CEST 2008
Author: arigo
Date: Tue Aug 26 13:50:05 2008
New Revision: 57630
Modified:
pypy/dist/pypy/objspace/std/test/test_typeobject.py
Log:
Two tests that pass on CPython but crash for us.
Modified: pypy/dist/pypy/objspace/std/test/test_typeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_typeobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_typeobject.py Tue Aug 26 13:50:05 2008
@@ -313,6 +313,27 @@
else:
raise TestFailed, "didn't catch MRO conflict"
+ def test_mutable_bases_versus_nonheap_types(self):
+ skip("in-progress")
+ class A(int):
+ __slots__ = []
+ class C(int):
+ pass
+ raises(TypeError, 'C.__bases__ = (A,)')
+ raises(TypeError, 'int.__bases__ = (object,)')
+ C.__bases__ = (int,)
+
+ def test_compatible_slot_layout(self):
+ skip("in-progress")
+ class A(object):
+ __slots__ = ['a']
+ class B(A):
+ __slots__ = ['b1', 'b2']
+ class C(A):
+ pass
+ class D(B, C): # assert does not raise TypeError
+ pass
+
def test_builtin_add(self):
x = 5
assert x.__add__(6) == 11
More information about the Pypy-commit
mailing list