Skip to content

Commit ff0b199

Browse files
committed
Disable __del__ for subprocess.Handle in windows
1 parent 39fcb31 commit ff0b199

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/subprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ def Detach(self):
202202
def __repr__(self):
203203
return "%s(%d)" % (self.__class__.__name__, int(self))
204204

205-
__del__ = Close
205+
# XXX: RustPython; OSError('The handle is invalid. (os error 6)')
206+
# __del__ = Close
206207
else:
207208
# When select or poll has indicated that the file is writable,
208209
# we can write up to _PIPE_BUF bytes without risk of blocking.

0 commit comments

Comments
 (0)