mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-08 18:01:56 +00:00
[cleanup] Misc (#8598)
Authored by: bashonly, pukkandan, seproDev, Grub4K Co-authored-by: bashonly <[email protected]> Co-authored-by: pukkandan <[email protected]> Co-authored-by: sepro <[email protected]>
This commit is contained in:
co-authored by
bashonly
pukkandan
sepro
parent
5f009a094f
commit
f9fb3ce86e
@@ -2110,6 +2110,8 @@ Line 1
|
||||
self.assertEqual(traverse_obj(_TEST_DATA, (..., {str_or_none})),
|
||||
[item for item in map(str_or_none, _TEST_DATA.values()) if item is not None],
|
||||
msg='Function in set should be a transformation')
|
||||
self.assertEqual(traverse_obj(_TEST_DATA, ('fail', {lambda _: 'const'})), 'const',
|
||||
msg='Function in set should always be called')
|
||||
if __debug__:
|
||||
with self.assertRaises(Exception, msg='Sets with length != 1 should raise in debug'):
|
||||
traverse_obj(_TEST_DATA, set())
|
||||
|
||||
Reference in New Issue
Block a user