[pypy-commit] pypy gc_no_cleanup_nursery: fix some tests
fijal
noreply at buildbot.pypy.org
Mon Sep 1 23:11:05 CEST 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: gc_no_cleanup_nursery
Changeset: r73279:b3beb2273ee2
Date: 2014-09-01 15:10 -0600
http://bitbucket.org/pypy/pypy/changeset/b3beb2273ee2/
Log: fix some tests
diff --git a/rpython/memory/test/test_transformed_gc.py b/rpython/memory/test/test_transformed_gc.py
--- a/rpython/memory/test/test_transformed_gc.py
+++ b/rpython/memory/test/test_transformed_gc.py
@@ -1319,7 +1319,7 @@
S = lltype.GcStruct('S', ('x', lltype.Signed))
A = lltype.GcArray(lltype.Ptr(S))
def f():
- lst = lltype.malloc(A, 5, zero= False)
+ lst = lltype.malloc(A, 5)
return (lst[0] == lltype.nullptr(S)
and lst[1] == lltype.nullptr(S)
and lst[2] == lltype.nullptr(S)
@@ -1330,7 +1330,7 @@
def test_malloc_array_of_gcptr(self):
run = self.runner('malloc_array_of_gcptr')
res = run([])
- assert not res
+ assert res
def define_malloc_struct_of_gcptr(cls):
S1 = lltype.GcStruct('S', ('x', lltype.Signed))
More information about the pypy-commit
mailing list