Merge remote-tracking branch 'origin/tox'
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 5 Oct 2013 20:47:44 +0000 (22:47 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 5 Oct 2013 20:47:44 +0000 (22:47 +0200)
test/helper.py

index 63f56841fa35439f5b691361dab9dfb5a962bb9c..8e641e3cb3054adada433b52d0a4f4ee52ad6631 100644 (file)
@@ -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