Skip to content

Improve tests for the PyUnicodeWriter C API#146157

Merged
serhiy-storchaka merged 2 commits intopython:mainfrom
serhiy-storchaka:test-capi-PyUnicodeWriter
Mar 19, 2026
Merged

Improve tests for the PyUnicodeWriter C API#146157
serhiy-storchaka merged 2 commits intopython:mainfrom
serhiy-storchaka:test-capi-PyUnicodeWriter

Conversation

@serhiy-storchaka
Copy link
Member

Add tests for corner cases: NULL pointers and out of range values.

Add tests for corner cases: NULL pointers and out of range values.
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Victor Stinner <vstinner@python.org>
@serhiy-storchaka serhiy-storchaka merged commit ab47892 into python:main Mar 19, 2026
48 checks passed
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the test-capi-PyUnicodeWriter branch March 19, 2026 17:15
@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker ab47892c32e6361f2180e7d86682650f0850c1c4 3.14

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 19, 2026
Add tests for corner cases: NULL pointers and out of range values.
(cherry picked from commit ab47892)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 19, 2026

GH-146180 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Mar 19, 2026
serhiy-storchaka added a commit that referenced this pull request Mar 20, 2026
…6180)

Add tests for corner cases: NULL pointers and out of range values.
(cherry picked from commit ab47892)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants