FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-156939: Add tests on the PyUnicode C API by vstinner · Pull Request #157798 · python/cpython · GitHub

Repository navigation

gh-156939: Add tests on the PyUnicode C API - #157798

Merged
vstinner merged 5 commits into
python:mainfrom
vstinner:unicode_testcapi
Sep 19, 2026
Merged

vstinner merged 5 commits into
python:mainfrom
vstinner:unicode_testcapi

Conversation

vstinner commented Sep 19, 2026 •
edited
Loading

Copy link
Copy Markdown
Member

Add tests on functions:

  • PyUnicode_CHECK_INTERNED()
  • PyUnicode_Check()
  • PyUnicode_CheckExact()
  • PyUnicode_Equal()
  • PyUnicode_GET_LENGTH()
  • PyUnicode_IS_ASCII()
  • PyUnicode_IS_COMPACT()
  • PyUnicode_IS_COMPACT_ASCII()
  • PyUnicode_KIND()
  • PyUnicode_MAX_CHAR_VALUE()
  • PyUnicode_READ()
  • PyUnicode_READ_CHAR()
  • PyUnicode_WRITE()

Add test on PyUnicode_FromOrdinal(0).

Require _testcapi module in test_capi.test_unicode. Since _testcapi is specific to CPython, remove @support.cpython_only.

Add tests on functions:

* PyUnicode_CHECK_INTERNED()
* PyUnicode_Check()
* PyUnicode_CheckExact()
* PyUnicode_Equal()
* PyUnicode_GET_LENGTH()
* PyUnicode_IS_ASCII()
* PyUnicode_IS_COMPACT()
* PyUnicode_IS_COMPACT_ASCII()
* PyUnicode_KIND()
* PyUnicode_MAX_CHAR_VALUE()
* PyUnicode_READ()
* PyUnicode_READ_CHAR()
* PyUnicode_WRITE()

Add test on PyUnicode_FromOrdinal(0).

Require _testcapi module in test_capi.test_unicode. Since _testcapi
is specific to CPython, remove @support.cpython_only.
vstinner enabled auto-merge (squash) September 19, 2026 15:37
vstinner merged commit e8f6448 into python:main Sep 19, 2026
52 checks passed
vstinner deleted the unicode_testcapi branch September 19, 2026 16:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL