[pypy-commit] pypy default: fix test
arigo
noreply at buildbot.pypy.org
Wed Feb 25 12:01:31 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r76123:648124294bf5
Date: 2015-02-25 12:01 +0100
http://bitbucket.org/pypy/pypy/changeset/648124294bf5/
Log: fix test
diff --git a/rpython/jit/backend/llsupport/test/test_asmmemmgr.py b/rpython/jit/backend/llsupport/test/test_asmmemmgr.py
--- a/rpython/jit/backend/llsupport/test/test_asmmemmgr.py
+++ b/rpython/jit/backend/llsupport/test/test_asmmemmgr.py
@@ -178,7 +178,11 @@
assert p[3] == 'y'
assert p[4] == 'Z'
assert p[5] == 'z'
- assert allblocks == [(rawstart, rawstart + 6)]
+ # 'allblocks' should be one block of length 6 + 15
+ # (15 = alignment - 1) containing the range(rawstart, rawstart + 6)
+ [(blockstart, blockend)] = allblocks
+ assert blockend == blockstart + 6 + (mc.ALIGN_MATERIALIZE - 1)
+ assert blockstart <= rawstart < rawstart + 6 <= blockend
assert puts == [(rawstart + 2, ['a', 'b', 'c', 'd']),
(rawstart + 4, ['e', 'f', 'g'])]
More information about the pypy-commit
mailing list