mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 11:02:51 -05:00
[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.
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user