diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-22 10:43:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-22 10:43:07 (GMT) |
commit | 9b32b44d3ec298e02c33fea1aa842f52c9650243 (patch) | |
tree | 32bec259eaa0dcb06bc9cec31c50e8f165ebac3b /Lib/test/test_asyncio | |
parent | 35202c763703c9c00345b4445a638211e6e37bbc (diff) | |
download | cpython-9b32b44d3ec298e02c33fea1aa842f52c9650243.zip cpython-9b32b44d3ec298e02c33fea1aa842f52c9650243.tar.gz cpython-9b32b44d3ec298e02c33fea1aa842f52c9650243.tar.bz2 |
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>
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 22a4907..d5f44b8 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -3352,7 +3352,9 @@ class CompatibilityTests(test_utils.TestCase): asyncio.run(old_style_coro()) """) - assert_python_ok("-c", code, PYTHONASYNCIODEBUG="1") + + assert_python_ok("-Wignore::DeprecationWarning", "-c", code, + PYTHONASYNCIODEBUG="1") if __name__ == '__main__': |