aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:16:23 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:16:23 -0400
commit0f14cd9c52944d924c7d9ac350e4f904b0edb0af (patch)
tree1e4cb5cc2fecbe24ea742e34f8403260f169f684 /setuptools/command/test.py
parent476381578991476afeca2e28a96b51fdbef50c13 (diff)
downloadexternal_python_setuptools-0f14cd9c52944d924c7d9ac350e4f904b0edb0af.tar.gz
external_python_setuptools-0f14cd9c52944d924c7d9ac350e4f904b0edb0af.tar.bz2
external_python_setuptools-0f14cd9c52944d924c7d9ac350e4f904b0edb0af.zip
Extract _argv property.
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index 5f93d92e..549cfb21 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -158,11 +158,15 @@ class test(Command):
list(map(sys.modules.__delitem__, del_modules))
unittest_main(
- None, None, ['unittest'] + self.test_args,
+ None, None, self._argv,
testLoader=self._resolve_as_ep(self.test_loader),
testRunner=self._resolve_as_ep(self.test_runner),
)
+ @property
+ def _argv(self):
+ return ['unittest'] + self.test_args
+
@staticmethod
def _resolve_as_ep(val):
"""