Author: Armin Rigo <ar...@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'])]
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to