]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 12 Sep 2023 13:56:02 +0000 (06:56 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2023 13:56:02 +0000 (15:56 +0200)
commitc76f4b97dcede6790a0e43d7d36179a298bbf0a6
tree22924bf2ab2b238fcf159fdf42d4913524c600f6
parentca848bbf78cf82447cc5c2fe6822c82f6f9e59c4
[3.12] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142) (#109149)

GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142)

Use `asyncio.sleep(0)` instead of short sleeps.
(cherry picked from commit ccd48623d4860e730a16f3f252d67bfea8c1e905)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Lib/test/test_asyncgen.py