[issue34130] test_signal: test_warn_on_full_buffer() failed on AppVeyor

STINNER Victor report at bugs.python.org
Wed Jul 18 11:16:02 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

I tried to modify the test_warn_on_full_buffer() code filling the socketpair buffer:

* iterate on multiple chunk sizes: 2**16, 2**10, 2**5, 1 bytes
* first try in non-blocking mode then retry with a timeout of 100 ms
* I also tried to play with SO_SNDBUF and SO_RCVBUF socket options

The problem is that I failed to fail a reliable way to fill the socketpair buffer.

I will stick with Nathaniel's very simple idea: retry once if the test fails. I implemented exactly this idea in my PR 8327 (with additional minor changes to enhance the test).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34130>
_______________________________________


More information about the Python-bugs-list mailing list