[pypy-commit] pypy reverse-debugger: fix test

arigo pypy.commits at gmail.com
Thu Aug 11 04:02:56 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: reverse-debugger
Changeset: r86135:6a05c5fb0a03
Date: 2016-08-11 10:02 +0200
http://bitbucket.org/pypy/pypy/changeset/6a05c5fb0a03/

Log:	fix test

diff --git a/rpython/translator/revdb/test/test_weak.py b/rpython/translator/revdb/test/test_weak.py
--- a/rpython/translator/revdb/test/test_weak.py
+++ b/rpython/translator/revdb/test/test_weak.py
@@ -203,6 +203,7 @@
                 assert time == i + 1
                 y = intmask(rdb.next('q')); assert y == -1
                 triggered = True
+            rdb.gil_release()
             rdb.same_stack()
             j = rdb.next()
             assert j == i + 1000000 * triggered
@@ -215,6 +216,7 @@
                     assert uid > 0 and uid not in uid_seen
                     uid_seen.add(uid)
                     lst.append(uid)
+                rdb.gil_release()
                 rdb.same_stack()
                 totals.append((lst, intmask(rdb.next())))
         x = rdb.next('q'); assert x == 3000    # number of stop points


More information about the pypy-commit mailing list