X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_youtube_subtitles.py;h=5b3f289afeebbca005c34535a61f3fa64177465e;hb=11d9224e3b472621e56d0862e600cd5133bd3fd1;hp=30f2246dd95e5ec4f68d6e05eb727c528de4dce9;hpb=46b9d8295d43bb4a5954da95293ef2490eb28b5e;p=youtube-dl diff --git a/test/test_youtube_subtitles.py b/test/test_youtube_subtitles.py index 30f2246dd..5b3f289af 100644 --- a/test/test_youtube_subtitles.py +++ b/test/test_youtube_subtitles.py @@ -30,7 +30,7 @@ class FakeDownloader(object): self.params = parameters def to_screen(self, s): print(s) - def trouble(self, s): + def trouble(self, s, tb=None): raise Exception(s) def download(self, x): self.result.append(x) @@ -80,7 +80,7 @@ class TestYoutubeSubtitles(unittest.TestCase): IE = YoutubeIE(DL) info_dict = IE.extract('QRS8MkLhQmM') subtitles = info_dict[0]['subtitles'] - self.assertEqual(len(subtitles), 12) + self.assertEqual(len(subtitles), 13) def test_youtube_subtitles_format(self): DL = FakeDownloader() DL.params['writesubtitles'] = True