diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-05-03 16:50:16 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-05-10 14:51:38 +0800 |
commit | edaa23f822a1e4a62771422fb598c7bd8ae0a152 (patch) | |
tree | 1fd265a1de34eee2e060ab16c0d54c8e6fced647 /test/test_compat.py | |
parent | d5ae6bb50124f8320f2b492380480038c487a6d2 (diff) |
[compat] Rename struct_(un)pack to compat_struct_(un)pack
Diffstat (limited to 'test/test_compat.py')
-rw-r--r-- | test/test_compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_compat.py b/test/test_compat.py index dd62a5d6b..539b30540 100644 --- a/test/test_compat.py +++ b/test/test_compat.py @@ -17,10 +17,10 @@ from youtube_dl.compat import ( compat_expanduser, compat_shlex_split, compat_str, + compat_struct_unpack, compat_urllib_parse_unquote, compat_urllib_parse_unquote_plus, compat_urllib_parse_urlencode, - struct_unpack, ) @@ -104,7 +104,7 @@ class TestCompat(unittest.TestCase): self.assertTrue(isinstance(doc.find('foo/bar').text, compat_str)) def test_struct_unpack(self): - self.assertEqual(struct_unpack('!B', b'\x00'), (0,)) + self.assertEqual(compat_struct_unpack('!B', b'\x00'), (0,)) if __name__ == '__main__': |