[pypy-commit] pypy default: Potential fix for the rare bug that shows up occasionally with cpython
arigo
pypy.commits at gmail.com
Tue Jul 5 10:49:56 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r85563:bd220c268bc9
Date: 2016-07-05 16:51 +0200
http://bitbucket.org/pypy/pypy/changeset/bd220c268bc9/
Log: Potential fix for the rare bug that shows up occasionally with
cpython (and more often with pypy). According to reverse-debugger,
it seems to be caused by a PyObject created in some earlier test
that is freed in the current test.
diff --git a/pypy/module/cpyext/test/test_cpyext.py b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -129,6 +129,7 @@
return str(soname)
def freeze_refcnts(self):
+ rawrefcount._dont_free_any_more()
return #ZZZ
state = self.space.fromcache(RefcountState)
self.frozen_refcounts = {}
More information about the pypy-commit
mailing list