aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_download.py
diff options
context:
space:
mode:
authorsquibbysquibby <[email protected]>2018-01-21 08:15:11 -0300
committerSergey M <[email protected]>2018-01-21 18:15:11 +0700
commit655c410063da3400272b1e08d2f7432f2bb9e182 (patch)
tree3abc71ab986ccec2f1e5fcd6fc0323c0d1e6c0d2 /test/test_download.py
parentb2a027fc6f858d08fb0f76e3e9ae777f8f846361 (diff)
downloadyoutube-dl-655c410063da3400272b1e08d2f7432f2bb9e182.tar.gz
youtube-dl-655c410063da3400272b1e08d2f7432f2bb9e182.zip
[test_download] Fix download tests for lazy extractors (closes #13554, closes #13757)
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 209f5f6d6..ebe820dfc 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -92,8 +92,8 @@ class TestDownload(unittest.TestCase):
def generator(test_case, tname):
def test_template(self):
- ie = youtube_dl.extractor.get_info_extractor(test_case['name'])
- other_ies = [get_info_extractor(ie_key) for ie_key in test_case.get('add_ie', [])]
+ ie = youtube_dl.extractor.get_info_extractor(test_case['name'])()
+ other_ies = [get_info_extractor(ie_key)() for ie_key in test_case.get('add_ie', [])]
is_playlist = any(k.startswith('playlist') for k in test_case)
test_cases = test_case.get(
'playlist', [] if is_playlist else [test_case])