cpython/Lib/test/test_capi
Nybblista 7f2de07808
[3.12] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-131554) (#131629)
[3.12] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (#131554)

add a set of asserts to test.test_capi.test_bytearray

1. Assert empty bytearray object for PyByteArray_Check.
2. Assert empty bytearray object for PyByteArray_CheckExact.
3. Assert 0-size bytearray object for PyByteArray_Size.
4. Assert empty bytearray object for PyByteArray_AsString.
5. Assert concatenation of the bytearray object with itself for PyByteArray_Concat.

(cherry picked from commit f3bf304c27)
2025-03-23 17:43:12 +00:00
..
__init__.py
__main__.py
check_config.py [3.12] gh-104621: Check for Incompatible Extensions in import_find_extension() (gh-107184) (gh-107360) 2023-07-27 21:51:34 +00:00
test_abstract.py [3.12] Add more C API tests (GH-112522) (GH-112525) 2023-11-29 22:02:57 +02:00
test_bytearray.py [3.12] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-131554) (#131629) 2025-03-23 17:43:12 +00:00
test_bytes.py [3.12] gh-131339: test PyBytes_Size for a zero-size bytes object (GH-131340) (#131344) 2025-03-17 12:20:32 +00:00
test_codecs.py [3.12] gh-99593: Add tests for Unicode C API (part 3) (GH-104728) (GH-106595) 2023-07-10 20:58:58 +03:00
test_complex.py [3.12] gh-109802: Increase test coverage for complexobject.c (GH-112452) (GH-112489) 2023-11-28 08:33:44 +00:00
test_dict.py [3.12] gh-115142: Skip test_capi.test_dict.py if _testcapi is not available (GH-117588) (GH-117718) 2024-04-11 16:18:28 +02:00
test_eval.py [3.12] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987) (#129023) 2025-01-19 13:51:53 +00:00
test_eval_code_ex.py [3.12] gh-117694: Improve tests for PyEval_EvalCodeEx() (GH-117695) (GH-117884) 2024-04-15 10:02:43 +00:00
test_exceptions.py [3.12] gh-108082: C API: Add tests for PyErr_WriteUnraisable() (GH-111455) (GH-111507) 2023-10-30 17:36:00 +00:00
test_file.py [3.12] gh-111495: Add PyFile tests (#129449) (#129477) (#129501) 2025-01-31 10:27:35 +01:00
test_float.py [3.12] gh-111765: Move old PyFloat_* tests to Lib/test/test_capi/test_float.py (GH-111766) (GH-111818) 2023-11-07 12:06:21 +00:00
test_getargs.py [3.12] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123841) 2024-09-11 14:06:40 +02:00
test_immortal.py gh-84436: Add integration C API tests for immortal objects (gh-103962) 2023-05-03 00:05:30 +09:00
test_import.py [3.12] gh-128911: Add tests on the PyImport C API (GH-128915) (GH-128960) (#128989) 2025-01-19 14:21:55 +01:00
test_list.py [3.12] gh-131441: Add a set of asserts to test.test_capi.test_list (#131442) (#131533) 2025-03-21 10:56:21 +03:00
test_long.py [3.12] gh-130824: Add tests for NULL in PyLong_*AndOverflow functions (GH-130828) (GH-130876) 2025-03-05 13:52:40 +02:00
test_mem.py gh-93649: Split tracemalloc tests from _testcapimodule.c (#99551) 2022-12-17 09:53:36 +01:00
test_misc.py [3.12] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987) (#129023) 2025-01-19 13:51:53 +00:00
test_number.py [3.12] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130212) 2025-02-17 10:25:20 +02:00
test_run.py [3.12] gh-117968: Add tests for the part of the PyRun family of the C API (GH-117982) (GH-118011) 2024-04-22 18:59:28 +00:00
test_set.py [3.12] gh-111495: Add tests for PyTuple C API (GH-118757) (#123379) 2024-09-06 00:51:02 +02:00
test_structmembers.py [3.12] gh-115011: Improve support of __index__() in setters of members with unsigned integer type (GH-115029) (GH-115294) 2024-02-11 11:56:17 +00:00
test_sys.py [3.12] gh-111065: Add more tests for the C API with the PySys_ prefix (GH-111067) (GH-111305) 2023-10-25 09:10:03 +00:00
test_tuple.py [3.12] gh-111495: Add tests for PyTuple C API (GH-118757) (#123379) 2024-09-06 00:51:02 +02:00
test_unicode.py [3.12] gh-111495: Test C API functions with extreme sizes and indices (GH-111631) (GH-111731) 2023-11-04 12:28:34 +02:00
test_watchers.py [3.12] gh-91051: fix type watcher test to be robust to existing watcher (GH-107989) (#108053) 2023-08-17 01:18:24 +02:00