aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-02-06 15:50:28 +0000
committerdirkf <fieldhouse@gmx.net>2023-02-13 03:54:51 +0000
commit4e04f104994c5dac2cb74b64ba7725716ce939d7 (patch)
tree169fceb65e92c31f74d52d19220c59dc1e8000a9
parent90c9f789d94fc2c0b4c28c57ba2e0b2f09ef95e3 (diff)
[compat] Update test_compat
[skip ci]
-rw-r--r--test/test_compat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_compat.py b/test/test_compat.py
index 4dddd9a38..e233b1ae1 100644
--- 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):