[pypy-commit] pypy default: Fix.

arigo noreply at buildbot.pypy.org
Thu May 12 14:39:44 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r44100:434e29908fff
Date: 2011-05-12 14:47 +0200
http://bitbucket.org/pypy/pypy/changeset/434e29908fff/

Log:	Fix.

diff --git a/pypy/rpython/memory/test/test_gctypelayout.py b/pypy/rpython/memory/test/test_gctypelayout.py
--- a/pypy/rpython/memory/test/test_gctypelayout.py
+++ b/pypy/rpython/memory/test/test_gctypelayout.py
@@ -4,6 +4,7 @@
 from pypy.rpython.memory.gctypelayout import gc_pointers_inside
 from pypy.rpython.lltypesystem import lltype, llmemory, rclass
 from pypy.rpython.test.test_llinterp import get_interpreter
+from pypy.rpython.rclass import IR_IMMUTABLE
 from pypy.objspace.flow.model import Constant
 
 class FakeGC:
@@ -101,7 +102,7 @@
     accessor = rclass.FieldListAccessor()
     S3 = lltype.GcStruct('S', ('x', PT), ('y', PT),
                          hints={'immutable_fields': accessor})
-    accessor.initialize(S3, {'x': ''})
+    accessor.initialize(S3, {'x': IR_IMMUTABLE})
     #
     s1 = lltype.malloc(S1)
     adr = llmemory.cast_ptr_to_adr(s1)


More information about the pypy-commit mailing list