projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[tests] don't fail on network errors
[youtube-dl]
/
test
/
test_all_urls.py
diff --git
a/test/test_all_urls.py
b/test/test_all_urls.py
index ff1c86efebe31f2d6477cbfe6246baa50607d6a7..56e5f80e1f6ddb17fef3ee5c499c238996c12051 100644
(file)
--- a/
test/test_all_urls.py
+++ b/
test/test_all_urls.py
@@
-1,14
+1,20
@@
#!/usr/bin/env python
#!/usr/bin/env python
+# Allow direct execution
+import os
import sys
import unittest
import sys
import unittest
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-# Allow direct execution
-import os
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from youtube_dl.extractor import YoutubeIE, YoutubePlaylistIE, YoutubeChannelIE, JustinTVIE, gen_extractors
-from helper import get_testcases
+from test.helper import get_testcases
+
+from youtube_dl.extractor import (
+ gen_extractors,
+ JustinTVIE,
+ YoutubeIE,
+)
+
class TestAllURLsMatching(unittest.TestCase):
def setUp(self):
class TestAllURLsMatching(unittest.TestCase):
def setUp(self):