[pypy-commit] pypy null_byte_after_str: Test fix (it would always return 0, and now the annotator figures that out)

arigo pypy.commits at gmail.com
Sat Jul 30 17:18:08 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: null_byte_after_str
Changeset: r85942:e407fb5b9a61
Date: 2016-07-30 23:19 +0200
http://bitbucket.org/pypy/pypy/changeset/e407fb5b9a61/

Log:	Test fix (it would always return 0, and now the annotator figures
	that out)

diff --git a/rpython/jit/metainterp/test/test_virtualizable.py b/rpython/jit/metainterp/test/test_virtualizable.py
--- a/rpython/jit/metainterp/test/test_virtualizable.py
+++ b/rpython/jit/metainterp/test/test_virtualizable.py
@@ -1381,7 +1381,7 @@
             return result
 
         def indirection(arg):
-            return interp(arg)
+            return interp(arg) + 1
 
         def run_interp(n):
             f = hint(Frame(n), access_directly=True)


More information about the pypy-commit mailing list