From f7a7a30ee44ced6628163bf33b52b30467d28246 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 Mar 2012 17:26:17 -0700 Subject: [PATCH] LockNonblockTestCase: close_fds tweak Make consistent with commit 144c23efbb4e9565debad03c13c5bcab833a8336. --- pym/portage/tests/locks/test_lock_nonblock.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/portage/tests/locks/test_lock_nonblock.py b/pym/portage/tests/locks/test_lock_nonblock.py index 17f854dbe..2ff7b3527 100644 --- a/pym/portage/tests/locks/test_lock_nonblock.py +++ b/pym/portage/tests/locks/test_lock_nonblock.py @@ -18,7 +18,10 @@ class LockNonblockTestCase(TestCase): lock1 = portage.locks.lockfile(path) pid = os.fork() if pid == 0: - portage.process._setup_pipes({0:0, 1:1, 2:2}) + portage.locks._close_fds() + # Disable close_fds since we don't exec + # (see _setup_pipes docstring). + portage.process._setup_pipes({0:0, 1:1, 2:2}, close_fds=False) rval = 2 try: try: -- 2.26.2