cpython/Lib/test/test_capi
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
..
__init__.py
__main__.py
check_config.py
test_abstract.py [3.13] gh-111495: Add tests for PyNumber C API (GH-111996) (#123375) 2024-09-02 13:11:06 +02:00
test_bytearray.py
test_bytes.py [3.13] gh-121842: Improve coverage of PyBytes_FromStringAndSize (GH-121843) (#121893) 2024-07-17 07:24:44 +00:00
test_codecs.py
test_complex.py
test_dict.py
test_eval.py [3.13] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987) 2025-01-18 14:49:55 +00:00
test_eval_code_ex.py
test_exceptions.py
test_file.py [3.13] gh-111495: Add PyFile tests (#129449) (#129477) 2025-01-30 20:29:27 +01:00
test_float.py
test_getargs.py [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840) 2024-09-29 18:27:23 -07:00
test_hash.py [3.13] gh-111495: Add tests for PyTuple C API (GH-118757) (GH-123371) 2024-08-27 12:07:17 +03:00
test_immortal.py
test_import.py [3.13] gh-128911: Add tests on the PyImport C API (#128915) (#128960) 2025-01-17 22:44:51 +01:00
test_list.py [3.13] gh-111495: Add tests for PyTuple C API (GH-118757) (GH-123371) 2024-08-27 12:07:17 +03:00
test_long.py [3.13] Refactor test_capi.test_long (GH-122113) (GH-122137) 2024-07-23 10:01:13 +03:00
test_mem.py
test_misc.py [3.13] gh-127873: Only check sys.flags.ignore_environment for PYTHON* env vars (GH-127877) (#129138) 2025-01-22 21:09:51 +02:00
test_number.py [3.13] gh-111495: Add tests for PyNumber C API (GH-111996) (#123375) 2024-09-02 13:11:06 +02:00
test_object.py
test_opt.py
test_pyatomic.py
test_run.py
test_set.py [3.13] gh-111495: Add tests for PyTuple C API (GH-118757) (GH-123371) 2024-08-27 12:07:17 +03:00
test_structmembers.py
test_sys.py
test_time.py [3.13] gh-111495: Add tests for PyTuple C API (GH-118757) (GH-123371) 2024-08-27 12:07:17 +03:00
test_tuple.py [3.13] gh-111495: Add tests for PyTuple C API (GH-118757) (GH-123371) 2024-08-27 12:07:17 +03:00
test_unicode.py [3.13] gh-128013: fix data race in PyUnicode_AsUTF8AndSize on free-threading (#128021) (#128417) 2025-01-02 22:10:17 +05:30
test_watchers.py [3.13] gh-125608: Trigger dictionary watchers when inline values change (GH-125611) (GH-125982) 2024-10-25 14:35:04 +00:00