[issue18174] Make regrtest with --huntrleaks check for fd leaks

Charles-François Natali report at bugs.python.org
Thu Jul 24 21:53:44 CEST 2014


Charles-François Natali added the comment:

> Why not using os.fstat() instead of os.dup() to check if a file descriptor is open or not?

I asked myself the same question, but IIRC, fstat() doesn't always
work on Windows (of course).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18174>
_______________________________________


More information about the Python-bugs-list mailing list