Disable __del__ for subprocess.Handle in windows

This commit is contained in:
Jeong YunWon committed 2020-09-15 04:04:22 +09:00
1 parent 869b8c3c8f
commit 6eb5daf9f6
1 file changed
+2 -1
+2 -1
View File
@@ -202,7 +202,8 @@ if _mswindows:
def __repr__(self):
return "%s(%d)" % (self.__class__.__name__, int(self))
__del__ = Close
# XXX: RustPython; OSError('The handle is invalid. (os error 6)')
# __del__ = Close
else:
# When select or poll has indicated that the file is writable,
# we can write up to _PIPE_BUF bytes without risk of blocking.