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 | ea8fcac653ff2946a577e8850062df42597bf8db (patch) | |
tree | 0a54e65f12309f2f522931ab5d97617aaed84c6f | |
parent | 72f76a72ee43ca8b48bb2607f5fb3a9e1bec35ef (diff) | |
download | python-setuptools-bitbucket-ea8fcac653ff2946a577e8850062df42597bf8db.tar.gz |
Resolve test_suite directly rather than referencing test_args
-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: |