소스 검색

[fixup] remove unnecessary commented function

Filippo Valsorda 12 년 전
부모
커밋
8932a66e49
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      test/helper.py

+ 0 - 6
test/helper.py

@@ -34,12 +34,6 @@ class FakeYDL(YoutubeDL):
         raise Exception(s)
     def download(self, x):
         self.result.append(x)
-    # def expect_warning(self, regex):
-    #     # Silence an expected warning matching a regex
-    #     def report_warning(self, message):
-    #         if re.match(regex, message): return
-    #         super(FakeYDL, self).report_warning(regex)
-    #     self.report_warning = types.MethodType(report_warning, self)
     def expect_warning(self, regex):
         # Silence an expected warning matching a regex
         old_report_warning = self.report_warning