Skip to content

gh-158451: Add _PyUnicodeWriter_FinishWithSize() test - #158481

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:test_finish_size
Sep 30, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:test_finish_size

Conversation

@vstinner

@vstinner vstinner commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
Member Author

test_asyncio.test_sslproto failed with "env changed" on "Windows (free-threading) / Build and test (x64, switch-case)" CI. I just re-run the job, it's a flaky test.

test_shutdown_corrupted_ssl_sends_close_notify (test.test_asyncio.test_sslproto.ProactorStartTLSTests.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 920, in server
    sock.unwrap()
    ~~~~~~~~~~~^^
  File "D:\a\cpython\cpython\Lib\ssl.py", line 1403, in unwrap
    s = self._sslobj.shutdown()
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

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 10053] An established connection was aborted by the software in your host machine
ok

@vstinner
vstinner enabled auto-merge (squash) September 30, 2026 07:06
@vstinner
vstinner merged commit 77c0675 into python:main Sep 30, 2026
96 of 98 checks passed
@vstinner
vstinner deleted the test_finish_size branch September 30, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant