diff options
Diffstat (limited to 'tests/test_subprocess.py')
-rw-r--r-- | tests/test_subprocess.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |