From 071c65bb4abac3c251f335bde20e13368349c55d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 16 Dec 2011 14:26:01 -0800 Subject: [PATCH] test_poll: add note about unbuffered fdopen --- pym/portage/tests/process/test_poll.py | 3 +++ 1 file changed, 3 insertions(+) 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( -- 2.26.2