From ac35c266868ddfd39f8b708f425e1baf2555e406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Sun, 2 Nov 2014 17:53:12 +0100 Subject: [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. --- test/test_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_download.py') 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): -- cgit v1.2.3