aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_download.py
diff options
context:
space:
mode:
authordirkf <[email protected]>2022-06-08 15:52:21 +0100
committerdirkf <[email protected]>2022-06-08 15:52:21 +0100
commitef044be34bb64c489558dd07818616b514d2e2ad (patch)
tree94762e0dde2550c10b900827b03883ccfb415154 /test/test_download.py
parent530f4582d011cd94986cf4d233f9fb9263f72150 (diff)
downloadyoutube-dl-ef044be34bb64c489558dd07818616b514d2e2ad.tar.gz
youtube-dl-ef044be34bb64c489558dd07818616b514d2e2ad.zip
[test] Skip not _WORKING IE in subtitle tests; use unittest.skipTest throughout
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 8e43cfa12..0951a171a 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -88,7 +88,6 @@ class TestDownload(unittest.TestCase):
# Dynamically generate tests
-
def generator(test_case, tname):
def test_template(self):
@@ -100,9 +99,10 @@ def generator(test_case, tname):
def print_skipping(reason):
print('Skipping %s: %s' % (test_case['name'], reason))
+ self.skipTest(reason)
+
if not ie.working():
print_skipping('IE marked as not _WORKING')
- return
for tc in test_cases:
info_dict = tc.get('info_dict', {})
@@ -111,11 +111,10 @@ def generator(test_case, tname):
if 'skip' in test_case:
print_skipping(test_case['skip'])
- return
+
for other_ie in other_ies:
if not other_ie.working():
print_skipping('test depends on %sIE, marked as not WORKING' % other_ie.ie_key())
- return
params = get_params(test_case.get('params', {}))
params['outtmpl'] = tname + '_' + params['outtmpl']