Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit