We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9cf92 commit 008be56Copy full SHA for 008be56
Lib/test/test_asyncio/test_proactor_events.py
@@ -290,7 +290,12 @@ def test_force_close_idempotent(self):
290
tr._closing = True
291
tr._force_close(None)
292
test_utils.run_briefly(self.loop)
293
- self.assertFalse(self.protocol.connection_lost.called)
+ # See https://github.com/python/cpython/issues/89237
294
+ # `protocol.connection_lost` should be called even if
295
+ # the transport was closed forcefully otherwise
296
+ # the resources held by protocol will never be freed
297
+ # and waiters will never be notified leading to hang.
298
+ self.assertTrue(self.protocol.connection_lost.called)
299
300
def test_fatal_error_2(self):
301
tr = self.socket_transport()
0 commit comments