]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111065: Add more tests for the C API with the PySys_ prefix (GH-111067)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 Oct 2023 08:33:12 +0000 (11:33 +0300)
committerGitHub <noreply@github.com>
Wed, 25 Oct 2023 08:33:12 +0000 (11:33 +0300)
commitb2ba2985275d1200e5c44c3f224d754141fc5292
treee1610ec77d986d4eb34c24a598fc2260f4cf960d
parent0d1cbff833f761f80383f4ce5fe31f686f3f04eb
gh-111065: Add more tests for the C API with the PySys_ prefix (GH-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.
Lib/test/test_capi/test_misc.py
Lib/test/test_capi/test_sys.py [new file with mode: 0644]
Modules/Setup.stdlib.in
Modules/_testcapi/parts.h
Modules/_testcapi/sys.c [new file with mode: 0644]
Modules/_testcapimodule.c
PCbuild/_testcapi.vcxproj
PCbuild/_testcapi.vcxproj.filters