Author: Carl Friedrich Bolz <cfb...@gmx.de>
Branch: hypothesis-apptest
Changeset: r85131:8261a2709a7c
Date: 2016-06-13 16:44 +0200
http://bitbucket.org/pypy/pypy/changeset/8261a2709a7c/

Log:    unbreak regular execution

diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -325,6 +325,8 @@
         hop.exception_cannot_occur()
         return hop.genop('hint', [v, c_hint], resulttype=v.concretetype)
 
+_hypothesis_data = None
+
 def we_are_jitted():
     """ Considered as true during tracing and blackholing,
     so its consquences are reflected into jitted code """
diff --git a/rpython/rlib/test/test_jit.py b/rpython/rlib/test/test_jit.py
--- a/rpython/rlib/test/test_jit.py
+++ b/rpython/rlib/test/test_jit.py
@@ -121,11 +121,12 @@
         if we_are_jitted():
             return 1
         return 1
-    counter = [0]
     def bad():
         if we_are_jitted():
             return 2
         return 1
+    assert good() == 1
+    assert bad() == 1
     @given(randomized_we_are_jitted_strategy())
     def test_random_good(_):
         assert good() == 1
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to