aboutsummaryrefslogtreecommitdiff
path: root/test/test_download.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-10-26 20:49:51 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-10-26 20:49:51 +0100
commit70b7e3fbb62e9bec12328bb9d506327fe77a85c0 (patch)
tree068f04c0b62689333d0fb3546bef835f7807bc1a /test/test_download.py
parent579657ad8726ab0cdefd98fbbb28f09fbcf94e96 (diff)
[generic] Add a test case for direct links with broken HEAD (#4032)
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 8178015ea..608e4528e 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -8,6 +8,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import (
assertGreaterEqual,
+ expect_warnings,
get_params,
gettestcases,
expect_info_dict,
@@ -100,6 +101,7 @@ def generator(test_case):
if status['status'] == 'finished':
finished_hook_called.add(status['filename'])
ydl.add_progress_hook(_hook)
+ expect_warnings(ydl, test_case.get('expected_warnings', []))
def get_tc_filename(tc):
return tc.get('file') or ydl.prepare_filename(tc.get('info_dict', {}))