Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for Unicode C API #99593

Open
serhiy-storchaka opened this issue Nov 19, 2022 · 0 comments
Open

Add tests for Unicode C API #99593

serhiy-storchaka opened this issue Nov 19, 2022 · 0 comments
Labels
3.10 3.11 3.12 expert-C-API tests Tests in the Lib/test dir type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Nov 19, 2022

Several years ago I started to write tests for Unicode C API. It required a lot of effort, because this category is big, so after doing 2/3 of the work I put it off for later. Certain circumstances prevented me from completing it. But now I found time to return to it.

In the meantime, other people have done some of this work (moving parts of the _testcapi.c to a separate files, adding coverage for more C API functions), and some of the legacy C API has been removed. Therefore, it took more than a week to arrange the code, fix conflicts, remove outdated tests and write remaining tests. But some errors may still remain, be careful.

Linked PRs

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 19, 2022
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 19, 2022
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 21, 2022
Add tests for functions corresponding to the str class methods.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 21, 2022
Add tests for lower-level functions.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 23, 2022
Add tests for codecs related functions.
serhiy-storchaka added a commit that referenced this issue Nov 29, 2022
Add tests for functions corresponding to the str class methods.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Nov 29, 2022
Add tests for lower-level functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 3.11 3.12 expert-C-API tests Tests in the Lib/test dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant