aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setuptools/command/test.py40
1 files changed, 1 insertions, 39 deletions
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
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-