[pypy-svn] r70905 - pypy/trunk/pypy/jit/metainterp/test

arigo at codespeak.net arigo at codespeak.net
Wed Jan 27 11:02:36 CET 2010


Author: arigo
Date: Wed Jan 27 11:02:36 2010
New Revision: 70905

Modified:
   pypy/trunk/pypy/jit/metainterp/test/test_resume.py
Log:
Fix for dictionary order.


Modified: pypy/trunk/pypy/jit/metainterp/test/test_resume.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/test/test_resume.py	(original)
+++ pypy/trunk/pypy/jit/metainterp/test/test_resume.py	Wed Jan 27 11:02:36 2010
@@ -993,7 +993,7 @@
     values = {b4s: v4, b2s: v2}
     liveboxes = []
     modifier._number_virtuals(liveboxes, values, 0)
-    assert liveboxes == [b2s, b4s]
+    assert liveboxes == [b2s, b4s] or liveboxes == [b4s, b2s]
     modifier._add_pending_fields([(LLtypeMixin.nextdescr, b2s, b4s)])
     storage.rd_consts = memo.consts[:]
     storage.rd_numb = None
@@ -1012,6 +1012,7 @@
 
     for x, y in zip(expected, trace):
         assert x == y
+    assert len(expected) == len(trace)
     assert demo55.next == demo66
 
 



More information about the Pypy-commit mailing list