]> granicus.if.org Git - python/commit
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Apr 2018 16:28:46 +0000 (09:28 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Apr 2018 16:28:46 +0000 (09:28 -0700)
commit785f36c876721c12f653371e9893527a25140624
treec0cba0ad31e4748f1a78a60c40e27bd30c49166e
parentfcd4e03e08a2d4ec1cde17beb66e2b22a052500f
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)

Different paths are executed for normal exit and for leaving
the 'async with' block with 'break', 'continue' or 'return'.
(cherry picked from commit 2eeac269dd1e04a2a179384576986c3e47895ee0)

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