]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-111065: Add more tests for the C API with the PySys_ prefix (GH-111067...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 Oct 2023 09:10:03 +0000 (12:10 +0300)
committerGitHub <noreply@github.com>
Wed, 25 Oct 2023 09:10:03 +0000 (09:10 +0000)
commit54e93d36d008351137835eda32072023d539adf9
treebfa5d861244b0f2eee8d952e4caed49e707233f7
parent6f130f231b8524f1b5c8d9c4cf155e93ef01062f
[3.12] gh-111065: Add more tests for the C API with the PySys_ prefix (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 b2ba2985275d1200e5c44c3f224d754141fc5292)
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