Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r74222:c9e9ae8f448f Date: 2014-10-25 16:24 +0200 http://bitbucket.org/pypy/pypy/changeset/c9e9ae8f448f/
Log: fix diff --git a/rpython/rtyper/lltypesystem/test/test_lltype.py b/rpython/rtyper/lltypesystem/test/test_lltype.py --- a/rpython/rtyper/lltypesystem/test/test_lltype.py +++ b/rpython/rtyper/lltypesystem/test/test_lltype.py @@ -827,10 +827,10 @@ def test_str_from_buffer(self): """gc-managed memory does not need to be freed""" size = 50 - raw_buf, gc_buf = rffi.alloc_buffer(size) + raw_buf, gc_buf, case_num = rffi.alloc_buffer(size) for i in range(size): raw_buf[i] = 'a' - rstr = rffi.str_from_buffer(raw_buf, gc_buf, size, size) - rffi.keep_buffer_alive_until_here(raw_buf, gc_buf) + rstr = rffi.str_from_buffer(raw_buf, gc_buf, case_num, size, size) + rffi.keep_buffer_alive_until_here(raw_buf, gc_buf, case_num) assert not leakfinder.ALLOCATED def test_leak_traceback(self): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit