Commit 8223f280 authored by Jason R. Coombs's avatar Jason R. Coombs

Only include test_suite in args if one is specified. Ref #446.

parent 9c9bfb0f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment