[pypy-commit] pypy default: Fix this test: when running on top of pypy, lltype.Ptr(S) returns

arigo noreply at buildbot.pypy.org
Mon Jul 25 18:19:12 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r45968:06d6597d6647
Date: 2011-07-25 18:19 +0200
http://bitbucket.org/pypy/pypy/changeset/06d6597d6647/

Log:	Fix this test: when running on top of pypy, lltype.Ptr(S) returns a
	pointer to the old S from the previous test which hasn't been freed
	yet --- which is fine.

diff --git a/pypy/jit/codewriter/test/test_jtransform.py b/pypy/jit/codewriter/test/test_jtransform.py
--- a/pypy/jit/codewriter/test/test_jtransform.py
+++ b/pypy/jit/codewriter/test/test_jtransform.py
@@ -769,7 +769,7 @@
         def get_vinfo(self, v):
             return None
         def could_be_green_field(self, S1, name1):
-            assert S1 is S
+            assert S1 == S
             assert name1 == 'x'
             return True
     S = lltype.GcStruct('S', ('x', lltype.Char),


More information about the pypy-commit mailing list