]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111495: Add PyFile tests (#129449)
authorVictor Stinner <vstinner@python.org>
Thu, 30 Jan 2025 17:05:32 +0000 (18:05 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2025 17:05:32 +0000 (18:05 +0100)
commit4ca9fc08f89bf7172d41e523d9e520eb1729ee8c
tree5cfca9bfa74c08530800fccd53e60e19b542fb01
parent4e47e05045b7b05c7e166bda2afd60191314e326
gh-111495: Add PyFile tests (#129449)

Add tests for the following functions in test_capi.test_file:

* PyFile_FromFd()
* PyFile_GetLine()
* PyFile_NewStdPrinter()
* PyFile_WriteObject()
* PyFile_WriteString()
* PyObject_AsFileDescriptor()

Add Modules/_testlimitedcapi/file.c file.

Remove test_embed.StdPrinterTests which became redundant.
Lib/test/test_capi/test_file.py
Lib/test/test_embed.py
Modules/Setup.stdlib.in
Modules/_testcapi/clinic/file.c.h
Modules/_testcapi/file.c
Modules/_testlimitedcapi.c
Modules/_testlimitedcapi/clinic/file.c.h [new file with mode: 0644]
Modules/_testlimitedcapi/file.c [new file with mode: 0644]
Modules/_testlimitedcapi/parts.h
PCbuild/_testlimitedcapi.vcxproj
PCbuild/_testlimitedcapi.vcxproj.filters