summaryrefslogtreecommitdiff
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
commit28ad55f38934d4fc28e869d02dd6b664ad0732a7 (patch)
tree3caee17c35f38a74f8a4e4a6f5110be6a9ed6c0b
parentec1059458976a5b2810171efdbd02940b97db7aa (diff)
downloadpython-setuptools-bitbucket-28ad55f38934d4fc28e869d02dd6b664ad0732a7.tar.gz
Extract _argv property.
-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):
"""