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
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
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
test_file.py [3.12] gh-111495: Add PyFile tests (#129449) (#129477) (#129501) 2025-01-31 10:27:35 +01:00
test_float.py
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
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
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
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
test_watchers.py