[pypy-svn] pypy 32ptr-on-64bit: This test used to pass probably by chance only. There is no way
arigo
commits-noreply at bitbucket.org
Sat Jan 29 15:36:45 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: 32ptr-on-64bit
Changeset: r41443:cf4e08945321
Date: 2011-01-28 18:45 +0100
http://bitbucket.org/pypy/pypy/changeset/cf4e08945321/
Log: 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().
diff --git a/pypy/rpython/memory/test/test_gc.py b/pypy/rpython/memory/test/test_gc.py
--- a/pypy/rpython/memory/test/test_gc.py
+++ b/pypy/rpython/memory/test/test_gc.py
@@ -99,11 +99,8 @@
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
More information about the Pypy-commit
mailing list