[Bugfix][CI/Build] Fix test and improve code for `merge_async_iterators` #5096
Move `test_merge_async_iterators`
b3ef189d
Add polyfill for `anext` for the test to work in Python <3.10
9589a7bc
Enable `msg` parameter in `task.cancel` if possible
978ad2c8
DarkLight1337
changed the title [Misc][Bugfix] Improve `merge_async_iterators` code and tests [Bugfix] Improve `merge_async_iterators` code and tests 1 year ago
DarkLight1337
changed the title [Bugfix] Improve `merge_async_iterators` code and tests [Bugfix][CI/Build] Improve `merge_async_iterators` code and tests 1 year ago
Fix undeclared type annotations at runtime
fa102ffb
DarkLight1337
changed the title [Bugfix][CI/Build] Improve `merge_async_iterators` code and tests [Bugfix][CI/Build] Fix test and improve code for `merge_async_iterators` 1 year ago
simon-mo
approved these changes
on 2024-05-29
simon-mo
merged
eecd8643
into main 1 year ago
Assignees
No one assigned
This PR fixes an issue where
merge_async_iterators
tests cannot be run inpython<3.10
due to lack ofanext
builtin. It also moves the test to a more appropriate location (test_utils.py
).Functionality-wise, this PR enables async tasks in
merge_async_iterators
to be cancelled with a message starting frompython>=3.9
where it is supported.Related contributions
This is part 1/5 of #5004.