Commits

Remi Meier committed fdd44d8

stm: fix raw_free test

Comments (0)

Files changed (1)

pypy/translator/stm/test/test_inevitable.py

 
     def test_unknown_raw_free(self):
         X = lltype.Struct('X', ('foo', lltype.Signed))
-        def f2():
-            return lltype.malloc(X, flavor='raw')
-        def f1():
-            lltype.free(f2(), flavor='raw')
+        def f2(p):
+            lltype.free(p, flavor='raw')
 
-        res = self.interpret_inevitable(f1, [])
+        res = self.interpret_inevitable(f2, [lltype.malloc(X, flavor='raw')])
         assert res == 'free'