Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

rlib/test/test_rsocket.py::test_simple_tcp[recvinto]

self = <rpython.conftest.LeakFinder instance at 0x00000238486acc60>
item = <Function 'test_simple_tcp[recvinto]'>

    @pytest.hookimpl(trylast=True)
    def pytest_runtest_teardown(self, item):
        if not isinstance(item, py.test.collect.Function):
            return
        if (not getattr(item.obj, 'dont_track_allocations', False)
            and leakfinder.TRACK_ALLOCATIONS):
            kwds = {}
            try:
                kwds['do_collection'] = item.track_allocations_collect
            except AttributeError:
                pass
            item._pypytest_leaks = leakfinder.stop_tracking_allocations(False,
                                                                        **kwds)
        else:            # stop_tracking_allocations() already called
            item._pypytest_leaks = None
    
        # check for leaks, but only if the test passed so far
        if getattr(item, '_success', False) and item._pypytest_leaks:
>           raise leakfinder.MallocMismatch(item._pypytest_leaks)
E           MallocMismatch: {
E           
E           <C object Array of Char {'nolength': True}  at 0x238477acbb0>:
E               ...
E             File "d:\pypy_stuff\buildbot64\slave\rpython-win-x86-64\build\rpython\rlib\rsocket.py", line 1185, in sendall
E               with rffi.scoped_nonmovingbuffer(data) as dataptr:
E             File "d:\pypy_stuff\buildbot64\slave\rpython-win-x86-64\build\rpython\rtyper\lltypesystem\rffi.py", line 1428, in __init__
E               self.buf, self.llobj, self.flag = get_nonmovingbuffer_ll(data)
E             File "d:\pypy_stuff\buildbot64\slave\rpython-win-x86-64\build\rpython\rtyper\lltypesystem\rffi.py", line 908, in get_nonmovingbuffer_ll
E               flavor='raw')
E           }

conftest.py:103: MallocMismatch
---------- Captured stdout call ----------
binding to port 1023: works
waiting for connection
connection accepted
connecting side knows that the connection was accepted too
sent one character
received ok
sending
recv returned 50000 bytes
data received ok
builder: rpython-win-x86-64 build #442+
test: rlib/test/test_rsocket.py::test_simple_tcp[recvinto]