projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[utils,compat] Move struct_pack and struct_unpack to compat.py
[youtube-dl]
/
test
/
test_utils.py
diff --git
a/test/test_utils.py
b/test/test_utils.py
index 00ada95ecabf05ed761f3e6a5bff1c810bc5a00c..5702ffa97fd51fb5633030f83514b27308ae69b6 100644
(file)
--- a/
test/test_utils.py
+++ b/
test/test_utils.py
@@
-55,7
+55,6
@@
from youtube_dl.utils import (
smuggle_url,
str_to_int,
strip_jsonp,
smuggle_url,
str_to_int,
strip_jsonp,
- struct_unpack,
timeconvert,
unescapeHTML,
unified_strdate,
timeconvert,
unescapeHTML,
unified_strdate,
@@
-457,9
+456,6
@@
class TestUtil(unittest.TestCase):
testPL(5, 2, (2, 99), [2, 3, 4])
testPL(5, 2, (20, 99), [])
testPL(5, 2, (2, 99), [2, 3, 4])
testPL(5, 2, (20, 99), [])
- def test_struct_unpack(self):
- self.assertEqual(struct_unpack('!B', b'\x00'), (0,))
-
def test_read_batch_urls(self):
f = io.StringIO('''\xef\xbb\xbf foo
bar\r
def test_read_batch_urls(self):
f = io.StringIO('''\xef\xbb\xbf foo
bar\r