From 749c36e62e0b8ebdb5cd714cc77b220b4ac576e8 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 1 May 2006 16:11:53 +0000 Subject: gobject.Pid.close --- tests/test_subprocess.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py index 189327d..b1c7dde 100644 --- a/tests/test_subprocess.py +++ b/tests/test_subprocess.py @@ -18,6 +18,7 @@ class TestProcess(unittest.TestCase): argv = [sys.executable, '-c', 'import sys'] pid, stdin, stdout, stderr = gobject.spawn_async( argv, flags=gobject.SPAWN_DO_NOT_REAP_CHILD) + pid.close() gobject.child_watch_add(pid, self._child_watch_cb, 12345) self.loop.run() self.assertEqual(self.data, 12345) -- cgit