]> 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:14 +0000 (07:09 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Apr 2018 14:09:14 +0000 (07:09 -0700)
commit4fd6c27dc8ba7ca97aa70e1ab98729f2207bbe19
tree205748b87924dfc5a5a34c8074008854e96f5a8f
parenta5c8830637cde632ab3bcf5475698dcf0fb0546d
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