diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-10 20:38:36 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-10 20:38:36 -0400 |
commit | 66a9cc535ea5c5616302d40910c8f3e2840d157a (patch) | |
tree | dd25b5c1810c80634c1baf7453bf99ce10054641 | |
parent | 7192a23faf9cefa4ff25ae671655e5d1254ae32c (diff) | |
download | python-setuptools-bitbucket-66a9cc535ea5c5616302d40910c8f3e2840d157a.tar.gz |
Only include test_suite in args if one is specified. Ref #446.
-rw-r--r-- | setuptools/command/test.py | 9 |
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) |