From 6eb5daf9f64aacdafe1dddc372420fac181a03b0 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 13 Sep 2020 07:06:51 +0900 Subject: [PATCH] Disable __del__ for subprocess.Handle in windows --- Lib/subprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 5ce787d61..874de7bb4 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -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.