]> granicus.if.org Git - python/commit
bpo-37323: Suppress DeprecationWarning raised by @asyncio.coroutine (GH-14293)
authorXtreak <tir.karthi@gmail.com>
Sat, 22 Jun 2019 10:25:26 +0000 (15:55 +0530)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Jun 2019 10:25:25 +0000 (03:25 -0700)
commit186f70905d07b42a9cbf0a29e448f30baf2b53cb
treec28d431ada1115e4be52ac38bc0f5702f0a62bd1
parent184f3d4f39056f6fe450d007d3b9b61d811a2a4d
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
Lib/test/test_asyncio/test_tasks.py