소스 검색

Fix FakeDownloaders

Philipp Hagemeister 12 년 전
부모
커밋
8749b71273
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      test/test_youtube_lists.py
  2. 1 1
      test/test_youtube_subtitles.py

+ 1 - 1
test/test_youtube_lists.py

@@ -29,7 +29,7 @@ class FakeDownloader(FileDownloader):
         self.params = parameters
     def to_screen(self, s):
         print(s)
-    def trouble(self, s):
+    def trouble(self, s, tb=None):
         raise Exception(s)
     def extract_info(self, url):
         self.result.append(url)

+ 1 - 1
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)