[pypy-commit] pypy default: Make this test closer to what was intended.

arigo noreply at buildbot.pypy.org
Tue Oct 25 21:05:20 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r48452:9a4ee13149cd
Date: 2011-10-25 15:54 +0200
http://bitbucket.org/pypy/pypy/changeset/9a4ee13149cd/

Log:	Make this test closer to what was intended.

diff --git a/pypy/jit/backend/llsupport/test/test_gc.py b/pypy/jit/backend/llsupport/test/test_gc.py
--- a/pypy/jit/backend/llsupport/test/test_gc.py
+++ b/pypy/jit/backend/llsupport/test/test_gc.py
@@ -250,10 +250,11 @@
                                   has_finalizer, has_light_finalizer,
                                   contains_weakptr):
         assert not contains_weakptr
+        assert not has_finalizer           # in these tests
+        assert not has_light_finalizer     # in these tests
         p = llmemory.raw_malloc(size)
         p = llmemory.cast_adr_to_ptr(p, RESTYPE)
-        flags = (int(has_finalizer) << 16) | (int(has_light_finalizer) << 17)
-        tid = llop.combine_ushort(lltype.Signed, type_id, flags)
+        tid = llop.combine_ushort(lltype.Signed, type_id, 0)
         self.record.append(("fixedsize", repr(size), tid, p))
         return p
 


More information about the pypy-commit mailing list