-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
test_asyncio.test_streams
raises a ResourceWarning
#116112
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
Comments
Bisects to a355f60 CC @CendioOssman |
To be precise the error occurs in
|
Thanks for letting me know. I'll try to have a look as soon as I'm able. |
In this case, the I am not sure why the same thing doesn't happen for The fix is this: diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py
index bf123ebf9b..2cf48538d5 100644
--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -1188,6 +1188,7 @@ async def handle_echo(reader, writer):
def test_unhandled_cancel(self):
async def handle_echo(reader, writer):
+ writer.close()
asyncio.current_task().cancel()
messages = self._basetest_unhandled_exceptions(handle_echo)
self.assertEqual(messages, []) Can someone easily commit this without a PR song and dance? |
No, this is not possible. All changes require a PR, CI run and proper review. |
That would be appreciated. |
Co-authored-by: @CendioOssman
Should be fixed now! Thanks everyone! |
Bug report
Bug description:
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
ResourceWarning
intest_asyncio.test_stream
#116371The text was updated successfully, but these errors were encountered: