Martin Panter added the comment: Perhaps we don’t normally see a warning because stdin normally has closefd=False set? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue25654> _______________________________________