[compat] Update test_compat

[skip ci]
pull/31716/head
dirkf 2023-02-06 15:50:28 +00:00
parent 90c9f789d9
commit 4e04f10499
1 changed files with 2 additions and 2 deletions

View File

@ -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):