[3.7] bpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200) by miss-islington · Pull Request #7202 · python/cpython (original) (raw)
Use transport.set_write_buffer_limits() in sendfile tests of
test_asyncio to make sure that the protocol is paused after sending
4 KiB. Previously,
test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed
on FreeBSD if the DATA was smaller than the default limit of 64 KiB.
(cherry picked from commit 9551f77)
Co-authored-by: Victor Stinner vstinner@redhat.com