X Tutup
The Wayback Machine - https://web.archive.org/web/20260313160313/https://github.com/python/cpython/pull/111067
Skip to content

gh-111065: Add more tests for the C API with the PySys_ prefix#111067

Merged
serhiy-storchaka merged 1 commit intopython:mainfrom
serhiy-storchaka:test_capi-test_sys
Oct 25, 2023
Merged

gh-111065: Add more tests for the C API with the PySys_ prefix#111067
serhiy-storchaka merged 1 commit intopython:mainfrom
serhiy-storchaka:test_capi-test_sys

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented 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.

* 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.
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker b2ba2985275d1200e5c44c3f224d754141fc5292 3.12

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request 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 <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Oct 25, 2023

GH-111305 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Oct 25, 2023
serhiy-storchaka added a commit that referenced this pull request 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 pull request 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 pull request 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

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup