Skip to content

Commit 47efe9c

Browse files
committed
windows fix
1 parent 184e8e3 commit 47efe9c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Lib/test/libregrtest/worker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def create_worker_process(runtests: WorkerRunTests, output_fd: int,
6666
env['TSAN_OPTIONS'] = ' '.join(parts)
6767

6868
# Pass json_file to the worker process
69-
json_file = runtests.json_file
69+
json_file runtests.json_file
7070
json_file.configure_subprocess(kwargs)
7171

7272
with json_file.inherit_subprocess():

Lib/test/test_external_inspection.py

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def foo():
8686
p.kill()
8787
p.terminate()
8888
p.wait(timeout=SHORT_TIMEOUT)
89+
subprocess._cleanup()
8990

9091

9192
expected_stack_trace = [
@@ -173,6 +174,7 @@ def new_eager_loop():
173174
p.kill()
174175
p.terminate()
175176
p.wait(timeout=SHORT_TIMEOUT)
177+
subprocess._cleanup()
176178

177179
# sets are unordered, so we want to sort "awaited_by"s
178180
stack_trace[2].sort(key=lambda x: x[1])
@@ -244,6 +246,7 @@ async def main():
244246
p.kill()
245247
p.terminate()
246248
p.wait(timeout=SHORT_TIMEOUT)
249+
subprocess._cleanup()
247250

248251
# sets are unordered, so we want to sort "awaited_by"s
249252
stack_trace[2].sort(key=lambda x: x[1])
@@ -310,6 +313,7 @@ async def main():
310313
p.kill()
311314
p.terminate()
312315
p.wait(timeout=SHORT_TIMEOUT)
316+
subprocess._cleanup()
313317

314318
# sets are unordered, so we want to sort "awaited_by"s
315319
stack_trace[2].sort(key=lambda x: x[1])
@@ -379,6 +383,7 @@ async def main():
379383
p.kill()
380384
p.terminate()
381385
p.wait(timeout=SHORT_TIMEOUT)
386+
subprocess._cleanup()
382387

383388
# sets are unordered, so we want to sort "awaited_by"s
384389
stack_trace[2].sort(key=lambda x: x[1])
@@ -521,6 +526,7 @@ async def main():
521526
p.kill()
522527
p.terminate()
523528
p.wait(timeout=SHORT_TIMEOUT)
529+
subprocess._cleanup()
524530

525531
@skip_if_not_supported
526532
@unittest.skipIf(sys.platform == "linux" and not PROCESS_VM_READV_SUPPORTED,

0 commit comments

Comments
 (0)