[pypy-commit] pypy default: Of course one of the test fails nowadays, fixed (in two versions).
arigo
pypy.commits at gmail.com
Mon May 2 13:48:07 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r84135:ad7b391873db
Date: 2016-05-02 19:48 +0200
http://bitbucket.org/pypy/pypy/changeset/ad7b391873db/
Log: Of course one of the test fails nowadays, fixed (in two versions).
diff --git a/rpython/translator/backendopt/test/test_finalizer.py b/rpython/translator/backendopt/test/test_finalizer.py
--- a/rpython/translator/backendopt/test/test_finalizer.py
+++ b/rpython/translator/backendopt/test/test_finalizer.py
@@ -75,6 +75,22 @@
lltype.free(p, flavor='raw')
r = self.analyze(g, [], f, backendopt=True)
+ assert r
+
+ def test_c_call_without_release_gil(self):
+ C = rffi.CArray(lltype.Signed)
+ c = rffi.llexternal('x', [lltype.Ptr(C)], lltype.Signed,
+ releasegil=False)
+
+ def g():
+ p = lltype.malloc(C, 3, flavor='raw')
+ f(p)
+
+ def f(p):
+ c(rffi.ptradd(p, 0))
+ lltype.free(p, flavor='raw')
+
+ r = self.analyze(g, [], f, backendopt=True)
assert not r
def test_chain(self):
More information about the pypy-commit
mailing list