[Python-checkins] distutils2: Minor: improve one test name, address pyflakes warnings
eric.araujo
python-checkins at python.org
Thu Oct 6 13:20:51 CEST 2011
http://hg.python.org/distutils2/rev/b5b96ab18810
changeset: 1203:b5b96ab18810
user: Éric Araujo <merwok at netwok.org>
date: Thu Oct 06 05:40:04 2011 +0200
summary:
Minor: improve one test name, address pyflakes warnings
files:
distutils2/tests/test_uninstall.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/distutils2/tests/test_uninstall.py b/distutils2/tests/test_uninstall.py
--- a/distutils2/tests/test_uninstall.py
+++ b/distutils2/tests/test_uninstall.py
@@ -1,15 +1,14 @@
-"""Tests for the uninstall command."""
+"""Tests for the distutils2.uninstall module."""
import os
import sys
import logging
-from StringIO import StringIO
-import stat
import distutils2.util
-from distutils2.database import disable_cache, enable_cache
+from StringIO import StringIO
from distutils2.run import main
from distutils2.errors import PackagingError
from distutils2.install import remove
+from distutils2.database import disable_cache, enable_cache
from distutils2.command.install_dist import install_dist
from distutils2.tests import unittest, support
@@ -84,7 +83,6 @@
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 @@
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')
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list