From 92599661329c1e573359e9c80121537954a6967f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Fri, 10 May 2013 08:31:30 +0200 Subject: [PATCH 1/2] test_youtube_subtitles: FakeDownloader inherits form FileDownloader --- test/test_youtube_subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_youtube_subtitles.py b/test/test_youtube_subtitles.py index 5b3f289af..1ab09d78b 100644 --- a/test/test_youtube_subtitles.py +++ b/test/test_youtube_subtitles.py @@ -24,7 +24,7 @@ proxy_handler = compat_urllib_request.ProxyHandler() opener = compat_urllib_request.build_opener(proxy_handler, cookie_processor, YoutubeDLHandler()) compat_urllib_request.install_opener(opener) -class FakeDownloader(object): +class FakeDownloader(FileDownloader): def __init__(self): self.result = [] self.params = parameters From 057c9938a157bbf370097f60b37793ae94d2c411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Fri, 10 May 2013 08:37:49 +0200 Subject: [PATCH 2/2] Import FileDownloader in test_youtube_subtitles Fix last commit --- test/test_youtube_subtitles.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_youtube_subtitles.py b/test/test_youtube_subtitles.py index 1ab09d78b..a123e6d72 100644 --- a/test/test_youtube_subtitles.py +++ b/test/test_youtube_subtitles.py @@ -12,6 +12,7 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from youtube_dl.InfoExtractors import YoutubeIE from youtube_dl.utils import * +from youtube_dl import FileDownloader PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "parameters.json") with io.open(PARAMETERS_FILE, encoding='utf-8') as pf: