]> granicus.if.org Git - python/commit
bpo-32703: Fix coroutine resource warning in case where there's an error (GH-5410)
authorYury Selivanov <yury@magic.io>
Mon, 29 Jan 2018 19:31:47 +0000 (14:31 -0500)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2018 19:31:47 +0000 (14:31 -0500)
commit2a2270db9be9bdac5ffd2d50929bf905e7391a06
tree4c45678f9e26ccc66843ed79a7467fabe03cf6b6
parentb647d7039d396b1da71ab33b101a78b53d4e6834
bpo-32703: Fix coroutine resource warning in case where there's an error (GH-5410)

The commit removes one unnecessary "if" clause in genobject.c.  That "if" clause was masking un-awaited coroutines warnings just to make writing unittests more convenient.
Lib/test/test_coroutines.py
Misc/NEWS.d/next/Core and Builtins/2018-01-29-01-15-17.bpo-32703.mwrF4-.rst [new file with mode: 0644]
Objects/genobject.c