[pypy-commit] pypy default: Fix test

arigo pypy.commits at gmail.com
Sun Oct 2 11:25:23 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r87519:18293703d573
Date: 2016-10-02 17:24 +0200
http://bitbucket.org/pypy/pypy/changeset/18293703d573/

Log:	Fix test

diff --git a/rpython/translator/backendopt/test/test_mallocprediction.py b/rpython/translator/backendopt/test/test_mallocprediction.py
--- a/rpython/translator/backendopt/test/test_mallocprediction.py
+++ b/rpython/translator/backendopt/test/test_mallocprediction.py
@@ -169,7 +169,10 @@
     t, graph = rtype(entrypoint, [int])
     total0 = preparation(t, t.graphs, heuristic=heuristic)
     total = clever_inlining_and_malloc_removal(t)
-    assert total == 6     # XXX total0 appears to vary
+    assert total in (6, 7)     # XXX total0 appears to vary
+    # we get 6 before fbace1f687b0, but 7 afterwards on some
+    # platforms, probably because rtime.clock() now contains
+    # a fall-back path
 
 def test_richards():
     from rpython.translator.goal.richards import entry_point


More information about the pypy-commit mailing list