aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:12:12 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:12:12 -0400
commit552ca4d4c712c68c90601ff3f70cf4115b1636ac (patch)
tree0238619fb9f04201791e29754d062a29a75659c4 /setuptools/command/test.py
parent82f3e20506b4e2646880ec7ac5bb6b10e03e8c40 (diff)
downloadexternal_python_setuptools-552ca4d4c712c68c90601ff3f70cf4115b1636ac.tar.gz
external_python_setuptools-552ca4d4c712c68c90601ff3f70cf4115b1636ac.tar.bz2
external_python_setuptools-552ca4d4c712c68c90601ff3f70cf4115b1636ac.zip
Resolve test_suite directly rather than referencing test_args
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index 225f4673..3e9f5f72 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -147,7 +147,7 @@ class test(Command):
# re-import them from the build location. Required when 2to3 is used
# with namespace packages.
if PY3 and getattr(self.distribution, 'use_2to3', False):
- module = self.test_args[-1].split('.')[0]
+ module = self.test_suite.split('.')[0]
if module in _namespace_packages:
del_modules = []
if module in sys.modules: