@@ -86,6 +86,7 @@ def foo():
86
86
p .kill ()
87
87
p .terminate ()
88
88
p .wait (timeout = SHORT_TIMEOUT )
89
+ subprocess ._cleanup ()
89
90
90
91
91
92
expected_stack_trace = [
@@ -173,6 +174,7 @@ def new_eager_loop():
173
174
p .kill ()
174
175
p .terminate ()
175
176
p .wait (timeout = SHORT_TIMEOUT )
177
+ subprocess ._cleanup ()
176
178
177
179
# sets are unordered, so we want to sort "awaited_by"s
178
180
stack_trace [2 ].sort (key = lambda x : x [1 ])
@@ -244,6 +246,7 @@ async def main():
244
246
p .kill ()
245
247
p .terminate ()
246
248
p .wait (timeout = SHORT_TIMEOUT )
249
+ subprocess ._cleanup ()
247
250
248
251
# sets are unordered, so we want to sort "awaited_by"s
249
252
stack_trace [2 ].sort (key = lambda x : x [1 ])
@@ -310,6 +313,7 @@ async def main():
310
313
p .kill ()
311
314
p .terminate ()
312
315
p .wait (timeout = SHORT_TIMEOUT )
316
+ subprocess ._cleanup ()
313
317
314
318
# sets are unordered, so we want to sort "awaited_by"s
315
319
stack_trace [2 ].sort (key = lambda x : x [1 ])
@@ -379,6 +383,7 @@ async def main():
379
383
p .kill ()
380
384
p .terminate ()
381
385
p .wait (timeout = SHORT_TIMEOUT )
386
+ subprocess ._cleanup ()
382
387
383
388
# sets are unordered, so we want to sort "awaited_by"s
384
389
stack_trace [2 ].sort (key = lambda x : x [1 ])
@@ -521,6 +526,7 @@ async def main():
521
526
p .kill ()
522
527
p .terminate ()
523
528
p .wait (timeout = SHORT_TIMEOUT )
529
+ subprocess ._cleanup ()
524
530
525
531
@skip_if_not_supported
526
532
@unittest .skipIf (sys .platform == "linux" and not PROCESS_VM_READV_SUPPORTED ,
0 commit comments