diff options
Diffstat (limited to 'pym/portage/tests/process/test_poll.py')
-rw-r--r-- | pym/portage/tests/process/test_poll.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/tests/process/test_poll.py b/pym/portage/tests/process/test_poll.py index 9df2e88ae..ee6ee0c3f 100644 --- a/pym/portage/tests/process/test_poll.py +++ b/pym/portage/tests/process/test_poll.py @@ -1,4 +1,4 @@ -# Copyright 1998-2010 Gentoo Foundation +# Copyright 1998-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from portage import os @@ -20,7 +20,7 @@ class PipeReaderTestCase(TestCase): scheduler = PollScheduler().sched_iface master_fd, slave_fd = os.pipe() - master_file = os.fdopen(master_fd, 'rb') + master_file = os.fdopen(master_fd, 'rb', 0) slave_file = os.fdopen(slave_fd, 'wb') producer = SpawnProcess( args=["bash", "-c", "echo -n '%s'" % test_string], |