[pypy-svn] r54451 - pypy/branch/gc-tweak/pypy/rpython/memory/test
arigo at codespeak.net
arigo at codespeak.net
Mon May 5 22:20:24 CEST 2008
Author: arigo
Date: Mon May 5 22:20:23 2008
New Revision: 54451
Modified:
pypy/branch/gc-tweak/pypy/rpython/memory/test/test_transformed_gc.py
Log:
Fix test.
Modified: pypy/branch/gc-tweak/pypy/rpython/memory/test/test_transformed_gc.py
==============================================================================
--- pypy/branch/gc-tweak/pypy/rpython/memory/test/test_transformed_gc.py (original)
+++ pypy/branch/gc-tweak/pypy/rpython/memory/test/test_transformed_gc.py Mon May 5 22:20:23 2008
@@ -855,9 +855,11 @@
run, transformer = self.runner(f, nbargs=2, transformer=True)
run([1, 4])
- assert len(transformer.layoutbuilder.addresses_of_static_ptrs) == 0
- assert transformer.layoutbuilder.additional_roots_sources >= 4
- # NB. Remember that additional_roots_sources does not count
+ if not transformer.GCClass.prebuilt_gc_objects_are_static_roots:
+ assert len(transformer.layoutbuilder.addresses_of_static_ptrs) == 0
+ else:
+ assert len(transformer.layoutbuilder.addresses_of_static_ptrs) >= 4
+ # NB. Remember that the number above does not count
# the number of prebuilt GC objects, but the number of locations
# within prebuilt GC objects that are of type Ptr(Gc).
# At the moment we get additional_roots_sources == 6:
More information about the Pypy-commit
mailing list