aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:38:36 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:38:36 -0400
commit8223f2804628034993247add70943888d96d6348 (patch)
tree96cbb3ac1d317b57b989d0e7848a564542e33323 /setuptools/command/test.py
parent9c9bfb0fc0f1f667bdabf220e939349143e0d9ec (diff)
downloadexternal_python_setuptools-8223f2804628034993247add70943888d96d6348.tar.gz
external_python_setuptools-8223f2804628034993247add70943888d96d6348.tar.bz2
external_python_setuptools-8223f2804628034993247add70943888d96d6348.zip
Only include test_suite in args if one is specified. Ref #446.
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index 75d55bad..11e4a019 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -80,8 +80,13 @@ class test(Command):
@property
def test_args(self):
- verbose = ['--verbose'] if self.verbose else []
- return verbose + [self.test_suite]
+ return list(self._test_args())
+
+ def _test_args(self):
+ if self.verbose:
+ yield '--verbose'
+ if self.test_suite:
+ yield self.test_suite
def with_project_on_sys_path(self, func):
with_2to3 = PY3 and getattr(self.distribution, 'use_2to3', False)