diff options
| author | Tarek Ziade <tarek@ziade.org> | 2011-05-30 10:07:49 (GMT) |
|---|---|---|
| committer | Tarek Ziade <tarek@ziade.org> | 2011-05-30 10:07:49 (GMT) |
| commit | b1b6e1384cf180657e8301643a4563077183a9e4 (patch) | |
| tree | 9ba33451b79908d89a8207b1d7b3fa2d3bb59a03 /Lib/packaging/tests/test_command_test.py | |
| parent | 43f289ad8882a743d03b92a430f7ab7616e96673 (diff) | |
| download | cpython-b1b6e1384cf180657e8301643a4563077183a9e4.zip cpython-b1b6e1384cf180657e8301643a4563077183a9e4.tar.gz cpython-b1b6e1384cf180657e8301643a4563077183a9e4.tar.bz2 | |
Cleaned up the installer output behavior.
This change also makes sure the logger handlers are not alterated after an
installation. That also fixes the remaining environment alteration issue in
test_packaging.
Diffstat (limited to 'Lib/packaging/tests/test_command_test.py')
| -rw-r--r-- | Lib/packaging/tests/test_command_test.py | 3 |
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 4fd8452..f780723 100644 --- a/Lib/packaging/tests/test_command_test.py +++ b/Lib/packaging/tests/test_command_test.py @@ -150,8 +150,7 @@ class TestTest(TempdirManager, cmd.tests_require = [phony_project] cmd.ensure_finalized() logs = self.get_logs(logging.WARNING) - self.assertEqual(1, len(logs)) - self.assertIn(phony_project, logs[0]) + self.assertIn(phony_project, logs[-1]) def prepare_a_module(self): tmp_dir = self.mkdtemp() |
