Commit 0a30d491 authored by Jason R. Coombs's avatar Jason R. Coombs

Calculate test_args on demand rather than setting an attribute.

parent b9e23adf
......@@ -72,10 +72,6 @@ class test(Command):
"You may specify a module or a suite, but not both"
)
self.test_args = [self.test_suite]
if self.verbose:
self.test_args.insert(0, '--verbose')
if self.test_loader is None:
self.test_loader = getattr(self.distribution, 'test_loader', None)
if self.test_loader is None:
......@@ -83,6 +79,11 @@ class test(Command):
if self.test_runner is None:
self.test_runner = getattr(self.distribution, 'test_runner', None)
@property
def test_args(self):
verbose = ['--verbose'] if self.verbose else []
return verbose + [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