[issue17835] test_io broken on PPC64 Linux

Antoine Pitrou report at bugs.python.org
Wed Apr 24 21:24:58 CEST 2013


Antoine Pitrou added the comment:

Ah, right. That number is the pipe buffer size (1032 is F_GETPIPE_SZ).

It's 65536 here, so when the test tries to write 1 million bytes on a pipe, the write blocks as expected (you can read the comments to understand why the test is doint that). But with a 1 MiB buffer size, the write doesn't block and therefore doesn't have to wait for the auxiliary thread to start and read from the pipe buffer.

Something else, what does the following say:

>>> r, w = os.pipe()
>>> fcntl.fcntl(r, 1031, 1000)

----------
nosy: +neologix

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17835>
_______________________________________


More information about the Python-bugs-list mailing list