← index #8937PR #8565
Off-topic · high · value 2.770
QUERY · ISSUE

extmod/uasyncio: gather gets stuck if you pass an empty list in v1.19

openby frlryropened 2022-07-20updated 2022-12-26
bugextmod

Hello, folks

This is pretty straightforward in v1.17 and v1.18 passing an empty list to gather will return (or yield) whereas in v1.19 it gets stuck for ever. Not sure if this is a new intended behavior (which is not in the docs?). I'm assuming this is a bug as there is nothing in the release notes.

Cheers,

CANDIDATE · PULL REQUEST

tests/extmod/uasyncio_gather: Make double-raise gather test reliable.

mergedby dpgeorgeopened 2022-04-20updated 2022-04-20
tests

This double-raise test could fail when task[0] raises and stops the gather before task[1] raises, then task[1] is left to raise later on and spoil the test.

This should fix a lot of the spurious CI failures that have come up lately.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied