Skip to content

Commit 73bf102

Browse files
authored
[test] traversal: Fix morsel tests for Python 3.14 (yt-dlp#13471)
Authored by: Grub4K
1 parent 1722c55 commit 73bf102

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

test/test_traversal.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -416,18 +416,8 @@ def test_traversal_unbranching(self):
416416
'`any` should allow further branching'
417417

418418
def test_traversal_morsel(self):
419-
values = {
420-
'expires': 'a',
421-
'path': 'b',
422-
'comment': 'c',
423-
'domain': 'd',
424-
'max-age': 'e',
425-
'secure': 'f',
426-
'httponly': 'g',
427-
'version': 'h',
428-
'samesite': 'i',
429-
}
430419
morsel = http.cookies.Morsel()
420+
values = dict(zip(morsel, 'abcdefghijklmnop'))
431421
morsel.set('item_key', 'item_value', 'coded_value')
432422
morsel.update(values)
433423
values['key'] = 'item_key'

0 commit comments

Comments
 (0)