Skip to content

Commit

Permalink
Update helper.py - linted
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf authored Feb 21, 2024
1 parent 2239666 commit fdb694e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def expect_warning(self, regex):
# Silence an expected warning matching a regex
expect_warnings(self, regex)


class FakeLogger(object):
def debug(self, msg):
pass
Expand Down Expand Up @@ -279,7 +280,7 @@ def assertEqual(self, got, expected, msg=None):

def expect_warnings(ydl, warnings_re):
real_warning = ydl.report_warning
# to facilitate matching, don't prettify messages
# to facilitate matching, don't prettify messages
ydl.params['no_color'] = True

def _report_warning(self, w, *args, **kwargs):
Expand Down

0 comments on commit fdb694e

Please sign in to comment.