aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index 200d255d..31f1ae40 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -47,6 +47,9 @@ class test(Command):
self.reinitialize_command('build_ext', inplace=1)
self.run_command('build_ext')
+ if self.distribution.tests_require:
+ self.distribution.fetch_build_eggs(self.distribution.tests_require)
+
if self.test_suite:
cmd = ' '.join(self.test_args)
if self.dry_run:
@@ -55,6 +58,7 @@ class test(Command):
self.announce('running "unittest %s"' % cmd)
self.run_tests()
+
def run_tests(self):
import unittest
old_path = sys.path[:]
@@ -76,7 +80,3 @@ class test(Command):
-
-
-
-