mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Change signature of packaging.tests.support.LoggingCatcher.get_logs.
I need this for some tests, and it makes code clearer. This commit also changes some assertEqual calls to use (actual, expected) order and fix some pyflakes warnings.
This commit is contained in:
parent
4b5a5f7bd5
commit
382067b3cf
10 changed files with 65 additions and 72 deletions
|
@ -1,5 +1,6 @@
|
|||
"""Tests for distutils.cmd."""
|
||||
import os
|
||||
import logging
|
||||
|
||||
from packaging.command.cmd import Command
|
||||
from packaging.dist import Distribution
|
||||
|
@ -43,7 +44,7 @@ class CommandTestCase(support.LoggingCatcher,
|
|||
|
||||
wanted = ["command options for 'MyCmd':", ' option1 = 1',
|
||||
' option2 = 1']
|
||||
msgs = self.get_logs()
|
||||
msgs = self.get_logs(logging.INFO)
|
||||
self.assertEqual(msgs, wanted)
|
||||
|
||||
def test_ensure_string(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue