aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_download.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2014-11-02 17:53:12 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2014-11-02 17:53:12 +0100
commitac35c266868ddfd39f8b708f425e1baf2555e406 (patch)
tree9e21bb514c482732246b3b14d5cceb6a3acb0afa /test/test_download.py
parent42f7d2f588f5d0276ddb89306d5371e9fdbe91a0 (diff)
downloadyoutube-dl-ac35c266868ddfd39f8b708f425e1baf2555e406.tar.gz
youtube-dl-ac35c266868ddfd39f8b708f425e1baf2555e406.zip
[tests] Don't auto init YoutubeDL
It would print the debug headers for each test. And nose uses a StringIO object for stdout, which in python 2.x doesn't have the 'encoding' attribute.
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 88ce29871..87aced97c 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -96,7 +96,7 @@ def generator(test_case):
params.setdefault('extract_flat', True)
params.setdefault('skip_download', True)
- ydl = YoutubeDL(params)
+ ydl = YoutubeDL(params, auto_init=False)
ydl.add_default_info_extractors()
finished_hook_called = set()
def _hook(status):