Uh oh!
There was an error while loading. Please reload this page.
bpo-39010: Ignore error on cancelled future after end of loop. - #20525
bpo-39010: Ignore error on cancelled future after end of loop.#20525cmeyer wants to merge 1 commit into
Conversation
the-knights-who-say-ni
commented
May 30, 2020
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
bdarnell
commented
Sep 1, 2020
This PR is obsolete now that #22017 has been merged. |
Python 3.8+ outputs spurious error messages for any
asyncio.run_forevercall with pendingrun_in_executorcalls when it finishes. When used in a loop that single steps through asyncio usingloop.stop()followed byloop.run_forever(), there are repeated, useless error messages. The spurious error messages cannot be prevented in any way I can find.This patch prevents these spurious error messages. The proactor and windows event code probably needs broader improvements to manage its state properly at exit. This patch does not deal with the broader issue. This patch is only a stop-gap to make Python 3.8 usable by our users.
The bug is easily reproduced with the following code (Windows only). I could not make a test case which would fail on the error since the exception is handled (and output) in low level code.
https://bugs.python.org/issue39010