]> granicus.if.org Git - python/commit
bpo-29922: Improve error messages in 'async with' (GH-6352)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Apr 2018 14:09:00 +0000 (07:09 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Apr 2018 14:09:00 +0000 (07:09 -0700)
commitfcd4e03e08a2d4ec1cde17beb66e2b22a052500f
tree9ecbabb82b5afa78bc8b81b617f83da67b954a4b
parentb8fc2d658094941250116a48577f54d1f6300362
bpo-29922: Improve error messages in 'async with' (GH-6352)

when __aenter__() or __aexit__() return non-awaitable object.
(cherry picked from commit a68f2f0578bbf812fa2264d0e0bb388340d6e230)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_coroutines.py
Misc/NEWS.d/next/Core and Builtins/2018-04-03-00-30-25.bpo-29922.CdLuMl.rst [new file with mode: 0644]
Python/ceval.c