cpython/Modules/_testlimitedcapi
Victor Stinner 9a59a51733
[3.13] gh-111495: Add PyFile tests (#129449) (#129477)
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.

(cherry picked from commit 4ca9fc08f8)
2025-01-30 20:29:27 +01:00
..
clinic [3.13] gh-111495: Add PyFile tests (#129449) (#129477) 2025-01-30 20:29:27 +01:00
abstract.c gh-116417: Move limited C API abstract.c tests to _testlimitedcapi (#116986) 2024-03-19 10:44:13 +00:00
bytearray.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
bytes.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
complex.c gh-116417: Move limited C API complex.c tests to _testlimitedcapi (#117014) 2024-03-19 17:23:12 +01:00
dict.c gh-116417: Move limited C API dict.c tests to _testlimitedcapi (#117006) 2024-03-19 15:06:20 +00:00
eval.c [3.13] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987) 2025-01-18 14:49:55 +00:00
file.c [3.13] gh-111495: Add PyFile tests (#129449) (#129477) 2025-01-30 20:29:27 +01:00
float.c gh-116417: Move limited C API unicode.c tests to _testlimitedcapi (#116993) 2024-03-19 12:30:39 +00:00
heaptype_relative.c gh-114329: Fix PyList_GetItemRef() limited C API definition (#117520) 2024-04-03 21:02:42 +00:00
import.c [3.13] gh-128911: Add tests on the PyImport C API (#128915) (#128960) 2025-01-17 22:44:51 +01:00
list.c gh-114329: Fix PyList_GetItemRef() limited C API definition (#117520) 2024-04-03 21:02:42 +00:00
long.c gh-117021: Fix integer overflow in PyLong_AsPid() on non-Windows 64-bit platforms (GH-117064) 2024-03-20 15:39:53 +02:00
object.c gh-114329: Fix PyList_GetItemRef() limited C API definition (#117520) 2024-04-03 21:02:42 +00:00
parts.h [3.13] gh-111495: Add PyFile tests (#129449) (#129477) 2025-01-30 20:29:27 +01:00
pyos.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
set.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
sys.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
testcapi_long.h gh-116417: Move limited C API long.c tests to _testlimitedcapi (#117001) 2024-03-19 14:04:23 +00:00
tuple.c [3.13] gh-111495: Add tests for PyTuple C API (GH-118757) (GH-123371) 2024-08-27 12:07:17 +03:00
unicode.c gh-116417: Move limited C API unicode.c tests to _testlimitedcapi (#116993) 2024-03-19 12:30:39 +00:00
util.h
vectorcall_limited.c gh-114329: Fix PyList_GetItemRef() limited C API definition (#117520) 2024-04-03 21:02:42 +00:00