Skip to content

Add more tests for the C API with the PySys_ prefix #111065

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

Closed
serhiy-storchaka opened this issue Oct 19, 2023 · 0 comments
Closed

Add more tests for the C API with the PySys_ prefix #111065

serhiy-storchaka opened this issue Oct 19, 2023 · 0 comments
Labels
3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Oct 19, 2023

Currently there are only tests for PySys_GetObject() and PySys_SetObject() (added in #107735). But it seems that more than one new functions will be added in #108512. There will be more tests, and it is more convenient to have special files for the C API with the PySys_ prefix.

It is also an opportunity to add more tests.

Linked PRs

@serhiy-storchaka serhiy-storchaka added tests Tests in the Lib/test dir skip news 3.12 only security fixes 3.13 bugs and security fixes and removed skip news labels Oct 19, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Oct 19, 2023
* Move existing tests for PySys_GetObject() and PySys_SetObject() into
  specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
  PySys_WriteStdout() and PySys_WriteStderr() using ctypes.
serhiy-storchaka added a commit that referenced this issue Oct 25, 2023
…1067)

* Move existing tests for PySys_GetObject() and PySys_SetObject() into
  specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
  PySys_WriteStdout() and PySys_WriteStderr() using ctypes.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Oct 25, 2023
…prefix (pythonGH-111067)

* Move existing tests for PySys_GetObject() and PySys_SetObject() into
  specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
  PySys_WriteStdout() and PySys_WriteStderr() using ctypes..
(cherry picked from commit b2ba298)

Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka added a commit that referenced this issue Oct 25, 2023
…GH-111067) (GH-111305)

* Move existing tests for PySys_GetObject() and PySys_SetObject() into
  specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
  PySys_WriteStdout() and PySys_WriteStderr() using ctypes.

(cherry picked from commit b2ba298)
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
…ythonGH-111067)

* Move existing tests for PySys_GetObject() and PySys_SetObject() into
  specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
  PySys_WriteStdout() and PySys_WriteStderr() using ctypes.
Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
…ythonGH-111067)

* Move existing tests for PySys_GetObject() and PySys_SetObject() into
  specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
  PySys_WriteStdout() and PySys_WriteStderr() using ctypes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant