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>
asyncio.run(old_style_coro())
""")
- assert_python_ok("-c", code, PYTHONASYNCIODEBUG="1")
+
+ assert_python_ok("-Wignore::DeprecationWarning", "-c", code,
+ PYTHONASYNCIODEBUG="1")
if __name__ == '__main__':