cpython/Lib/test/test_capi
Serhiy Storchaka 69368ebc33
[3.13] gh-158102: Add tests for the slice C API (GH-158120) (GH-158293)
Test PySlice_Check(), PySlice_New(), PySlice_GetIndices(), PySlice_Unpack(),
PySlice_AdjustIndices() and PySlice_GetIndicesEx() -- both the macro and the
deprecated function.

Document the length and step precondition of PySlice_AdjustIndices()
(cherry picked from commit 8c056c33aa)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-09-29 15:38:46 +03:00
..
__init__.py
__main__.py
check_config.py
test_abstract.py
test_bytearray.py
test_bytes.py
test_capsule.py
test_codecs.py
test_complex.py
test_dict.py
test_eval.py
test_eval_code_ex.py
test_exceptions.py
test_file.py
test_float.py
test_getargs.py
test_hash.py
test_immortal.py
test_import.py
test_list.py
test_long.py
test_mem.py
test_misc.py
test_number.py
test_object.py
test_opt.py
test_pyatomic.py
test_run.py
test_set.py
test_slice.py
test_structmembers.py
test_sys.py
test_time.py
test_tuple.py
test_unicode.py
test_watchers.py
test_weakref.py