File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -719,6 +719,8 @@ def test_pipesizes(self):
719
719
# However, this function is not yet in _winapi.
720
720
p .stdin .write (b"pear" )
721
721
p .stdin .close ()
722
+ p .stdout .close ()
723
+ p .stderr .close ()
722
724
finally :
723
725
p .kill ()
724
726
p .wait ()
@@ -746,6 +748,8 @@ def test_pipesize_default(self):
746
748
# On other platforms we cannot test the pipe size (yet). But above
747
749
# code using pipesize=-1 should not crash.
748
750
p .stdin .close ()
751
+ p .stdout .close ()
752
+ p .stderr .close ()
749
753
finally :
750
754
p .kill ()
751
755
p .wait ()
@@ -3243,6 +3247,7 @@ def test_send_signal_race2(self):
3243
3247
with mock .patch .object (p , 'poll' , new = lambda : None ):
3244
3248
p .returncode = None
3245
3249
p .send_signal (signal .SIGTERM )
3250
+ p .kill ()
3246
3251
3247
3252
def test_communicate_repeated_call_after_stdout_close (self ):
3248
3253
proc = subprocess .Popen ([sys .executable , '-c' ,
You can’t perform that action at this time.
0 commit comments