mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 06:42:21 +00:00
[compat] Update test_compat
[skip ci]
This commit is contained in:
parent
a6f7d10d44
commit
b337af9c62
@ -50,9 +50,9 @@ class TestCompat(unittest.TestCase):
|
|||||||
import youtube_dl.compat
|
import youtube_dl.compat
|
||||||
all_names = sorted(
|
all_names = sorted(
|
||||||
youtube_dl.compat.__all__ + youtube_dl.compat.legacy)
|
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('_'),
|
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))
|
self.assertEqual(all_names, sorted(present_names))
|
||||||
|
|
||||||
def test_compat_urllib_parse_unquote(self):
|
def test_compat_urllib_parse_unquote(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user