-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
bpo-37323: Suppress DeprecationWarning raised by @asyncio.coroutine #14293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Tested locally |
vstinner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asvetlov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
The test change is correct.
We should support @coroutine for years in deprecated mode.
|
Thanks @tirkarthi for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
…ythonGH-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 186f709) Co-authored-by: Xtreak <tir.karthi@gmail.com>
|
GH-14305 is a backport of this pull request to the 3.8 branch. |
|
Thanks for the reviews :) |
…H-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 186f709) Co-authored-by: Xtreak <tir.karthi@gmail.com>
|
|
Hmm, the failure is I'm pretty sure it is not related to the PR. |
|
There is an issue for this test failure : https://bugs.python.org/issue37359 |
…ythonGH-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
…ythonGH-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
When the test is ran with
PYTHONWARNINGS=errorthe environment variable is passed to the python interpreter used inassert_python_okwhereDeprecationWarningfrom@asyncio.coroutineis converted into an error. Ignore theDeprecationWarninginassert_python_ok.https://bugs.python.org/issue37323