]> granicus.if.org Git - python/commit
bpo-37323: Suppress DeprecationWarning raised by @asyncio.coroutine (GH-14293)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Jun 2019 10:43:07 +0000 (03:43 -0700)
committerGitHub <noreply@github.com>
Sat, 22 Jun 2019 10:43:07 +0000 (03:43 -0700)
commit9b32b44d3ec298e02c33fea1aa842f52c9650243
tree32bec259eaa0dcb06bc9cec31c50e8f165ebac3b
parent35202c763703c9c00345b4445a638211e6e37bbc
bpo-37323: Suppress DeprecationWarning raised by @asyncio.coroutine (GH-14293)

When the test is ran with `PYTHONWARNINGS=error` the environment variable is passed to the python interpreter used in `assert_python_ok` where `DeprecationWarning` from  `@asyncio.coroutine` is converted into an error. Ignore the `DeprecationWarning` in `assert_python_ok`.

https://bugs.python.org/issue37323
(cherry picked from commit 186f70905d07b42a9cbf0a29e448f30baf2b53cb)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
Lib/test/test_asyncio/test_tasks.py