diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-10-19 06:37:22 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-10-19 06:37:22 (GMT) |
| commit | 382067b3cfe6ed004b98ff2d2ed9cf3249d8f6b6 (patch) | |
| tree | 77d7fcfdf8dbcc011a94819c4c1ede731508324b /Lib/packaging/tests/test_command_cmd.py | |
| parent | 4b5a5f7bd5c966648340b8bdbca54e836658cac7 (diff) | |
| download | cpython-382067b3cfe6ed004b98ff2d2ed9cf3249d8f6b6.zip cpython-382067b3cfe6ed004b98ff2d2ed9cf3249d8f6b6.tar.gz cpython-382067b3cfe6ed004b98ff2d2ed9cf3249d8f6b6.tar.bz2 | |
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.
Diffstat (limited to 'Lib/packaging/tests/test_command_cmd.py')
| -rw-r--r-- | Lib/packaging/tests/test_command_cmd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/packaging/tests/test_command_cmd.py b/Lib/packaging/tests/test_command_cmd.py index 8ac9dce..6d00ec3 100644 --- a/Lib/packaging/tests/test_command_cmd.py +++ b/Lib/packaging/tests/test_command_cmd.py @@ -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): |
