diff options
author | Éric Araujo <merwok@netwok.org> | 2011-10-06 03:18:41 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-10-06 03:18:41 (GMT) |
commit | 8ed34a130ea8c30b98bf45eaed8ffa68e7e6ed71 (patch) | |
tree | e6c5b5e07c713ce8ab0cb7dff3ca83f9290d2f1b /Lib/packaging | |
parent | fa23cc842c22b945f1fd1126810991daddbd7314 (diff) | |
download | cpython-8ed34a130ea8c30b98bf45eaed8ffa68e7e6ed71.zip cpython-8ed34a130ea8c30b98bf45eaed8ffa68e7e6ed71.tar.gz cpython-8ed34a130ea8c30b98bf45eaed8ffa68e7e6ed71.tar.bz2 |
Minor: improve one test name, address pyflakes warnings
Diffstat (limited to 'Lib/packaging')
-rw-r--r-- | Lib/packaging/tests/test_uninstall.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/packaging/tests/test_uninstall.py b/Lib/packaging/tests/test_uninstall.py index 7603a40..49fcb42 100644 --- a/Lib/packaging/tests/test_uninstall.py +++ b/Lib/packaging/tests/test_uninstall.py @@ -1,15 +1,14 @@ -"""Tests for the uninstall command.""" +"""Tests for the packaging.uninstall module.""" import os import sys import logging -from io import StringIO -import stat import packaging.util -from packaging.database import disable_cache, enable_cache +from io import StringIO from packaging.run import main from packaging.errors import PackagingError from packaging.install import remove +from packaging.database import disable_cache, enable_cache from packaging.command.install_dist import install_dist from packaging.tests import unittest, support @@ -84,7 +83,6 @@ class UninstallTestCase(support.TempdirManager, if not dirname: dirname = self.make_dist(name, **kw) os.chdir(dirname) - old_out = sys.stderr sys.stderr = StringIO() dist = self.run_setup('install_dist', '--prefix=' + self.root_dir) site_packages = self.get_path(dist, 'purelib') @@ -104,7 +102,7 @@ class UninstallTestCase(support.TempdirManager, self.assertIsNotFile(site_packages, 'foo', 'sub', '__init__.py') self.assertIsNotFile(site_packages, 'Foo-0.1.dist-info', 'RECORD') - def test_remove_issue(self): + def test_uninstall_error_handling(self): # makes sure if there are OSErrors (like permission denied) # remove() stops and displays a clean error dist, site_packages = self.install_dist('Meh') |