Skip to content

Commit b09b3d8

Browse files
committed
FIX: create_task
1 parent f63f1d5 commit b09b3d8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ci_tools/nox_utils.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,11 +715,15 @@ async def async_popen():
715715
outlines = []
716716
await asyncio.wait([
717717
# process out is only redirected to STDOUT if not silent
718-
_read_stream(process.stdout, lambda l: tee(l, sinklist=outlines, sinkstream=log_file_stream,
719-
quiet=silent, verbosepipe=sys.stdout)),
718+
asyncio.create_task(
719+
_read_stream(process.stdout, lambda l: tee(l, sinklist=outlines, sinkstream=log_file_stream,
720+
quiet=silent, verbosepipe=sys.stdout)),
721+
),
720722
# process err is always redirected to STDOUT (quiet=False) with a specific label
721-
_read_stream(process.stderr, lambda l: tee(l, sinklist=outlines, sinkstream=log_file_stream,
722-
quiet=False, verbosepipe=sys.stdout, label="ERR:"))
723+
asyncio.create_task(
724+
_read_stream(process.stderr, lambda l: tee(l, sinklist=outlines, sinkstream=log_file_stream,
725+
quiet=False, verbosepipe=sys.stdout, label="ERR:"))
726+
),
723727
])
724728
return_code = await process.wait() # make sur the process has ended and retrieve its return code
725729
return return_code, outlines

0 commit comments

Comments
 (0)