mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-38839: Fix some unused functions in tests (GH-17189)
This commit is contained in:
parent
54b32c9871
commit
892221bfa0
9 changed files with 12 additions and 19 deletions
|
@ -39,8 +39,6 @@ class LoggingSilencer(object):
|
|||
self.logs.append((level, msg, args))
|
||||
|
||||
def get_logs(self, *levels):
|
||||
def _format(msg, args):
|
||||
return msg % args
|
||||
return [msg % args for level, msg, args
|
||||
in self.logs if level in levels]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue