]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44469: Fix tests for "async with" with bad object (GH-26817)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Jun 2021 07:57:07 +0000 (00:57 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Jun 2021 07:57:07 +0000 (00:57 -0700)
commit553e10498ac2020e9abdb5302c91bfb235925cef
tree47ea017b8beb9873c9a129d83ef4d032efc3679d
parentccc95c7b4799570c2d7e4de3d579860ad833e1f8
bpo-44469: Fix tests for "async with" with bad object (GH-26817)

Test for execution of the body was null. It would pass
even if the code which should be skipped was executed.
(cherry picked from commit 5d2b3a0d688cf8a33db3d266c9e7049c13766a4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_coroutines.py