From 4dcbe9cd38e5143431541c66d5dba418b665bb5a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 9 Feb 2014 18:32:28 -0500 Subject: Remove unused import and excess whitespace. --- setuptools/command/test.py | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) (limited to 'setuptools/command/test.py') diff --git a/setuptools/command/test.py b/setuptools/command/test.py index db2fc7b1..e936418d 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -3,7 +3,7 @@ from distutils.errors import DistutilsOptionError import sys from pkg_resources import * from pkg_resources import _namespace_packages -from unittest import TestLoader, main +from unittest import TestLoader class ScanningLoader(TestLoader): @@ -57,7 +57,6 @@ class test(Command): self.test_module = None self.test_loader = None - def finalize_options(self): if self.test_suite is None: @@ -79,8 +78,6 @@ class test(Command): if self.test_loader is None: self.test_loader = "setuptools.command.test:ScanningLoader" - - def with_project_on_sys_path(self, func): if sys.version_info >= (3,) and getattr(self.distribution, 'use_2to3', False): # If we run 2to3 we can not do this inplace: @@ -122,7 +119,6 @@ class test(Command): sys.modules.update(old_modules) working_set.__init__() - def run(self): if self.distribution.install_requires: self.distribution.fetch_build_eggs(self.distribution.install_requires) @@ -137,7 +133,6 @@ class test(Command): self.announce('running "unittest %s"' % cmd) self.with_project_on_sys_path(self.run_tests) - def run_tests(self): import unittest @@ -163,36 +158,3 @@ class test(Command): None, None, [unittest.__file__]+self.test_args, testLoader = cks ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3