test_shutdown_corrupted_ssl_sends_close_notify (test.test_asyncio.test_sslproto.SelectorStartTLSTests.test_shutdown_corrupted_ssl_sends_close_notify) ... Warning -- Uncaught thread exception: AssertionError
Exception in thread test-server:
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\test\test_asyncio\functional.py", line 255, in _run
self._handle_client(conn)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "D:\a\cpython\cpython\Lib\test\test_asyncio\functional.py", line 264, in _handle_client
self._prog(TestSocketWrapper(sock))
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\cpython\cpython\Lib\test\test_asyncio\test_sslproto.py", line 964, in server
sock.unwrap()
~~~~~~~~~~~^^
File "D:\a\cpython\cpython\Lib\ssl.py", line 1412, in unwrap
s = self._sslobj.shutdown()
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\threading.py", line 1218, in _bootstrap_inner
self._context.run(self.run)
~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "D:\a\cpython\cpython\Lib\test\test_asyncio\functional.py", line 227, in run
self._run()
~~~~~~~~~^^
File "D:\a\cpython\cpython\Lib\test\test_asyncio\functional.py", line 261, in _run
self._test._abort_socket_test(ex)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
File "D:\a\cpython\cpython\Lib\test\test_asyncio\functional.py", line 110, in _abort_socket_test
self.fail(ex)
~~~~~~~~~^^^^
File "D:\a\cpython\cpython\Lib\unittest\case.py", line 772, in fail
raise self.failureException(msg)
AssertionError: [WinError 10054] An existing connection was forcibly closed by the remote host
ok
Windows / Build and test (x64, switch-case): https://github.com/python/cpython/actions/runs/37101902171/job/111142985125?pr=153148
See also issue gh-155027.