diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-11-02 17:53:12 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-11-02 17:53:12 +0100 |
commit | ac35c266868ddfd39f8b708f425e1baf2555e406 (patch) | |
tree | 9e21bb514c482732246b3b14d5cceb6a3acb0afa /test/helper.py | |
parent | 42f7d2f588f5d0276ddb89306d5371e9fdbe91a0 (diff) |
[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/helper.py')
-rw-r--r-- | test/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/helper.py b/test/helper.py index fb8618120..325f72f0a 100644 --- a/test/helper.py +++ b/test/helper.py @@ -57,7 +57,7 @@ class FakeYDL(YoutubeDL): # Different instances of the downloader can't share the same dictionary # some test set the "sublang" parameter, which would break the md5 checks. params = get_params(override=override) - super(FakeYDL, self).__init__(params) + super(FakeYDL, self).__init__(params, auto_init=False) self.result = [] def to_screen(self, s, skip_eol=None): |