[pypy-commit] pypy default: A failing test about heapcache
arigo
noreply at buildbot.pypy.org
Tue Jan 21 16:20:45 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r68818:a7b725461c8a
Date: 2014-01-21 16:19 +0100
http://bitbucket.org/pypy/pypy/changeset/a7b725461c8a/
Log: A failing test about heapcache
diff --git a/rpython/jit/metainterp/test/test_ajit.py b/rpython/jit/metainterp/test/test_ajit.py
--- a/rpython/jit/metainterp/test/test_ajit.py
+++ b/rpython/jit/metainterp/test/test_ajit.py
@@ -3952,3 +3952,21 @@
res = self.interp_operations(f, [])
assert res == 2
self.check_operations_history(call_release_gil=1, call_may_force=0)
+
+ def test_unescaped_write_zero(self):
+ class A:
+ pass
+ def g():
+ return A()
+ @dont_look_inside
+ def escape():
+ print "hi!"
+ def f(n):
+ a = g()
+ a.x = n
+ escape()
+ a.x = 0
+ escape()
+ return a.x
+ res = self.interp_operations(f, [42])
+ assert res == 0
More information about the pypy-commit
mailing list