Author: Armin Rigo <ar...@tunes.org>
Branch: cffi-1.0
Changeset: r77213:4b09aa7b0267
Date: 2015-05-08 16:18 +0200
http://bitbucket.org/pypy/pypy/changeset/4b09aa7b0267/

Log:    Pff, this fixes a leak

diff --git a/pypy/module/_cffi_backend/test/test_recompiler.py 
b/pypy/module/_cffi_backend/test/test_recompiler.py
--- a/pypy/module/_cffi_backend/test/test_recompiler.py
+++ b/pypy/module/_cffi_backend/test/test_recompiler.py
@@ -344,7 +344,7 @@
         assert ffi.sizeof("struct foo_s") == 24  # found by the actual C code
         p = ffi.new("struct foo_s *")
         # lazily build the fields and boom:
-        e = raises(ffi.error, "p.a")
+        e = raises(ffi.error, getattr, p, "a")
         assert str(e.value).startswith("struct foo_s: wrong size for field 'a' 
"
                                        "(cdef says 20, but C compiler says 
24)")
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to