Author: Armin Rigo <[email protected]>
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),
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to