]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 8 Sep 2023 17:02:57 +0000 (10:02 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2023 17:02:57 +0000 (17:02 +0000)
commit6b2f44ea7860bc9957e1f48ecddedff7a973876d
tree8e801f193ce6a8e13090d819b2d004726fd415b2
parentc1a2ef5efceda2705919ee0233ff657575909ce9
[3.11] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142) (#109150)

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