cpython/Lib/test/test_capi
Miss Islington (bot) 856bb54235
[3.13] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-131554) (#131601)
gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-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)

Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
2025-03-23 10:44:47 +03: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 [3.13] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-131554) (#131601) 2025-03-23 10:44:47 +03:00
test_bytes.py [3.13] gh-131339: test PyBytes_Size for a zero-size bytes object (GH-131340) (#131343) 2025-03-17 09:01:40 +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 [3.13] gh-117174: Add a new route in linecache to fetch interactive source code (GH-117500) (#131060) 2025-03-10 23:11:24 +00:00
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-131441: Add a set of asserts to test.test_capi.test_list (GH-131442) (#131523) 2025-03-20 19:25:16 +00:00
test_long.py [3.13] gh-130824: Add tests for NULL in PyLong_*AndOverflow functions (GH-130828) (GH-130869) 2025-03-05 13:51:52 +02:00
test_mem.py Fix incorrect usage of `support.requires_gil_enabled` (#118170) 2024-04-25 11:11:59 -04:00
test_misc.py [3.13] gh-130382: add missing _PyReftracerTrack to ceval Py_DECREF (GH-130689) (#131195) 2025-03-14 09:52:05 -04:00
test_number.py [3.13] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130211) 2025-02-17 10:24:59 +02:00
test_object.py [3.13] gh-118789: Add PyUnstable_Object_ClearWeakRefsNoCallbacks (GH-118807) (#120695) 2024-06-18 14:54:51 +00:00
test_opt.py GH-115709: Invalidate executors when a local variable is changed via frame.f_locals (#118639) 2024-05-06 21:21:06 +00:00
test_pyatomic.py
test_run.py gh-116180: Check the globals argument in PyRun_* C API (GH-116637) 2024-05-02 16:43:03 +03:00
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