logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 4e04f104994c5dac2cb74b64ba7725716ce939d7
parent 90c9f789d94fc2c0b4c28c57ba2e0b2f09ef95e3
Author: dirkf <fieldhouse@gmx.net>
Date:   Mon,  6 Feb 2023 15:50:28 +0000

[compat] Update test_compat

[skip ci]

Diffstat:

Mtest/test_compat.py4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_compat.py b/test/test_compat.py @@ -50,9 +50,9 @@ class TestCompat(unittest.TestCase): import youtube_dl.compat all_names = sorted( youtube_dl.compat.__all__ + youtube_dl.compat.legacy) - present_names = set(filter( + present_names = set(map(compat_str, filter( lambda c: '_' in c and not c.startswith('_'), - dir(youtube_dl.compat))) - set(['unicode_literals']) + dir(youtube_dl.compat)))) - set(['unicode_literals']) self.assertEqual(all_names, sorted(present_names)) def test_compat_urllib_parse_unquote(self):