summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/process/test_PopenProcess.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/tests/process/test_PopenProcess.py')
-rw-r--r--pym/portage/tests/process/test_PopenProcess.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pym/portage/tests/process/test_PopenProcess.py b/pym/portage/tests/process/test_PopenProcess.py
index 5ede164af..88da0b354 100644
--- a/pym/portage/tests/process/test_PopenProcess.py
+++ b/pym/portage/tests/process/test_PopenProcess.py
@@ -1,4 +1,4 @@
-# Copyright 2012 Gentoo Foundation
+# Copyright 2012-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import subprocess
@@ -53,12 +53,9 @@ class PopenPipeTestCase(TestCase):
try:
consumer = PipeLogger(background=True,
- input_fd=os.dup(producer.proc.stdout.fileno()),
+ input_fd=producer.proc.stdout,
log_file_path=log_file_path)
- # Close the stdout pipe, since we duplicated it, and it
- # must be closed in order to avoid a ResourceWarning.
- producer.proc.stdout.close()
producer.pipe_reader = consumer
producer.start()