STINNER Victor added the comment: I don't understand why os.dup2() is more reliable than os.pipe() for a unit test?
Is subprocess_close-default-1.diff portable? test_os uses hasattr(os, "dup2"). In Modules/posixmodule.c, it looks like the function is always defined!? ---------- _______________________________________ 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