diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-10 20:12:12 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-10 20:12:12 -0400 |
commit | 552ca4d4c712c68c90601ff3f70cf4115b1636ac (patch) | |
tree | 0238619fb9f04201791e29754d062a29a75659c4 /setuptools/command/test.py | |
parent | 82f3e20506b4e2646880ec7ac5bb6b10e03e8c40 (diff) | |
download | external_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.py | 2 |
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: |