From d93fc0812cb36d9b4d54625968caea54df51bd12 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 17 Mar 2007 08:27:21 +0000 Subject: [PATCH] Close /dev/null when finished. svn path=/main/trunk/; revision=6231 --- pym/portage/tests/bin/setup_env.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/portage/tests/bin/setup_env.py b/pym/portage/tests/bin/setup_env.py index 0d9b8bc7f..cde720d99 100644 --- a/pym/portage/tests/bin/setup_env.py +++ b/pym/portage/tests/bin/setup_env.py @@ -49,6 +49,7 @@ def portage_func(func, args, exit_status=0): f = open('/dev/null', 'w') fd_pipes = {0:0,1:f.fileno(),2:f.fileno()} spawn(func+" "+args, env=os.environ, fd_pipes=fd_pipes) + f.close() def create_portage_wrapper(bin): def derived_func(*args): -- 2.26.2