summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_test.py
diff options
context:
space:
mode:
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)
commit382067b3cfe6ed004b98ff2d2ed9cf3249d8f6b6 (patch)
tree77d7fcfdf8dbcc011a94819c4c1ede731508324b /Lib/packaging/tests/test_command_test.py
parent4b5a5f7bd5c966648340b8bdbca54e836658cac7 (diff)
downloadcpython-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_test.py')
-rw-r--r--Lib/packaging/tests/test_command_test.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/packaging/tests/test_command_test.py b/Lib/packaging/tests/test_command_test.py
index f780723..31566eb 100644
--- a/Lib/packaging/tests/test_command_test.py
+++ b/Lib/packaging/tests/test_command_test.py
@@ -2,7 +2,6 @@ import os
import re
import sys
import shutil
-import logging
import unittest as ut1
import packaging.database
@@ -149,7 +148,7 @@ class TestTest(TempdirManager,
phony_project = 'ohno_ohno-impossible_1234-name_stop-that!'
cmd.tests_require = [phony_project]
cmd.ensure_finalized()
- logs = self.get_logs(logging.WARNING)
+ logs = self.get_logs()
self.assertIn(phony_project, logs[-1])
def prepare_a_module(self):