[pypy-svn] r48684 - pypy/dist/pypy/objspace/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Nov 14 17:56:32 CET 2007
Author: cfbolz
Date: Wed Nov 14 17:56:32 2007
New Revision: 48684
Modified:
pypy/dist/pypy/objspace/test/test_thunkobjspace.py
Log:
two tests showing the brokenness of the thunk object space
Modified: pypy/dist/pypy/objspace/test/test_thunkobjspace.py
==============================================================================
--- pypy/dist/pypy/objspace/test/test_thunkobjspace.py (original)
+++ pypy/dist/pypy/objspace/test/test_thunkobjspace.py Wed Nov 14 17:56:32 2007
@@ -57,13 +57,19 @@
assert id(x) == id(y) == idy
def test_double_become(self):
+ skip("fix me")
from __pypy__ import thunk, become
- x = []
- y = []
- z = []
+ x = [1]
+ y = [2]
+ z = [3]
become(x, y)
become(y, z)
assert x is y is z
+ a = []
+ a.extend(x)
+ a.extend(y)
+ a.extend(z)
+ assert a == [3, 3, 3]
def test_double_become2(self):
from __pypy__ import thunk, become
@@ -147,3 +153,10 @@
x = []
become(x, x)
assert str(x) == "[]"
+
+ def test_thunk_special_method(self):
+ skip("fix me")
+ from __pypy__ import thunk
+ x = thunk(lambda : 42)
+ assert 1 .__add__(x) == 43
+
More information about the Pypy-commit
mailing list