1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-15 04:35:19 +00:00

[test:devalue] add Python negative indexing test

Authored by: bashonly
This commit is contained in:
bashonly
2025-06-11 02:33:27 -05:00
parent 9d00bd01ce
commit fb332f6908

View File

@@ -171,6 +171,11 @@ TEST_CASES_INVALID = [{
'unparsed': [],
'error': IndexError,
'pattern': r'list index out of range',
}, {
'name': 'Python negative indexing',
'unparsed': [[1, 2, 3, 4, 5, 6, 7, -7], 1, 2, 3, 4, 5, 6, 7],
'error': IndexError,
'pattern': r'invalid index: -7',
}]