1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2026-04-28 01:33:24 +00:00

[Misc] Fixes for 2.6 compatibility

This commit is contained in:
dirkf
2023-07-04 16:06:21 +01:00
parent b08a580906
commit f24bc9272e
6 changed files with 38 additions and 8 deletions
+1 -1
View File
@@ -1612,7 +1612,7 @@ Line 1
self.assertEqual(traverse_obj(_TEST_DATA, lambda x, y: x == 'urls' and isinstance(y, list)),
[_TEST_DATA['urls']],
msg='function as query key should perform a filter based on (key, value)')
self.assertCountEqual(traverse_obj(_TEST_DATA, lambda _, x: isinstance(x[0], compat_str)), {'str'},
self.assertCountEqual(traverse_obj(_TEST_DATA, lambda _, x: isinstance(x[0], compat_str)), ('str',),
msg='exceptions in the query function should be caught')
# Test alternative paths