projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4724714
)
test_poll: add note about unbuffered fdopen
author
Zac Medico
<zmedico@gentoo.org>
Fri, 16 Dec 2011 22:26:01 +0000
(14:26 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 16 Dec 2011 22:26:01 +0000
(14:26 -0800)
pym/portage/tests/process/test_poll.py
patch
|
blob
|
history
diff --git
a/pym/portage/tests/process/test_poll.py
b/pym/portage/tests/process/test_poll.py
index f1ddcb3dd323d7c81c2f014e8f7b3566e2ebc5d7..30816db2bca2ff57210cbfb4ae433fc897a85a57 100644
(file)
--- 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(