From: Zac Medico Date: Fri, 16 Dec 2011 22:26:01 +0000 (-0800) Subject: test_poll: add note about unbuffered fdopen X-Git-Tag: v2.2.0_alpha82~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=071c65bb4abac3c251f335bde20e13368349c55d;p=portage.git test_poll: add note about unbuffered fdopen --- diff --git a/pym/portage/tests/process/test_poll.py b/pym/portage/tests/process/test_poll.py index f1ddcb3dd..30816db2b 100644 --- a/pym/portage/tests/process/test_poll.py +++ b/pym/portage/tests/process/test_poll.py @@ -25,6 +25,9 @@ class PipeReaderTestCase(TestCase): else: got_pty = False master_fd, slave_fd = os.pipe() + + # WARNING: It is very important to use unbuffered mode here, + # in order to avoid issue 5380 with python3. master_file = os.fdopen(master_fd, 'rb', 0) slave_file = os.fdopen(slave_fd, 'wb', 0) producer = SpawnProcess(