STINNER Victor added the comment: "the parent can know precisely which FD was opened by the preexec hook, and check it's closed in the child process."
Oh ok, I see: + self.assertNotIn(fd, remaining_fds) You might also add a check: self.assertLessEqual(remaining_fds, {0, 1, 2}) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18763> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com