bpo-29922: Improve error messages in 'async with' (GH-6352)

when __aenter__() or __aexit__() return non-awaitable object.
This commit is contained in:
Serhiy Storchaka 2018-04-03 01:41:38 +03:00 committed by GitHub
parent 55966f3a0d
commit a68f2f0578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 4 deletions

View file

@ -0,0 +1,2 @@
Improved error messages in 'async with' when ``__aenter__()`` or
``__aexit__()`` return non-awaitable object.