[pypy-commit] pypy ffistruct: (antocuni, arigo): this is probably how the test was meant to be

antocuni noreply at buildbot.pypy.org
Wed Nov 9 19:12:03 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: ffistruct
Changeset: r49035:08175c33f891
Date: 2011-11-09 17:48 +0100
http://bitbucket.org/pypy/pypy/changeset/08175c33f891/

Log:	(antocuni, arigo): this is probably how the test was meant to be

diff --git a/pypy/translator/backendopt/test/test_finalizer.py b/pypy/translator/backendopt/test/test_finalizer.py
--- a/pypy/translator/backendopt/test/test_finalizer.py
+++ b/pypy/translator/backendopt/test/test_finalizer.py
@@ -84,8 +84,8 @@
 
             def __del__(self):
                 if self.x:
+                    lltype.free(self.x, flavor='raw')
                     self.x = lltype.nullptr(S)
-                    lltype.free(self.x, flavor='raw')
 
         def f():
             return A()


More information about the pypy-commit mailing list