We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9da6b5f commit 68255f7Copy full SHA for 68255f7
1 file changed
tests/client/test_stdio.py
@@ -483,13 +483,15 @@ def handle_term(sig, frame):
483
# Start the parent process
484
proc = await _create_platform_compatible_process(sys.executable, ["-c", parent_script])
485
486
- # Let child start writing
487
- await anyio.sleep(0.5)
+ # Let child start writing (Windows CI with Python 3.10 needs
+ # extra time for the grandchild to import and begin I/O)
488
+ startup_delay = 2.0 if sys.platform == "win32" else 0.5
489
+ await anyio.sleep(startup_delay)
490
491
# Verify child is writing
492
if os.path.exists(marker_file): # pragma: no cover
493
size1 = os.path.getsize(marker_file)
- await anyio.sleep(0.3)
494
+ await anyio.sleep(0.5)
495
size2 = os.path.getsize(marker_file)
496
assert size2 > size1, "Child should be writing"
497
0 commit comments