Commits

Armin Rigo  committed cf4e089

This test used to pass probably by chance only. There is no way
that a global list can grow during one call to self.interpret(),
and then continue to be usable from there during an unrelated
call to self.interpret().

  • Participants
  • Parent commits cee7f38
  • Branches 32ptr-on-64bit

Comments (0)

Files changed (1)

File pypy/rpython/memory/test/test_gc.py

         def append_to_list(i, j):
             lst.append([i] * 50)
             return lst[j][0]
-        res = self.interpret(append_to_list, [0, 0])
-        assert res == 0
-        for i in range(1, 15):
-            res = self.interpret(append_to_list, [i, i - 1])
-            assert res == i - 1 # crashes if constants are not considered roots
+        res = self.interpret(append_to_list, [42, 0])
+        assert res == 42
             
     def test_string_concatenation(self):
         #curr = simulator.current_size