diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-10 20:15:25 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-10 20:15:25 -0400 |
commit | ec1059458976a5b2810171efdbd02940b97db7aa (patch) | |
tree | b106d2da84eaf59a6135073c3ed912f4ef396778 | |
parent | ea8fcac653ff2946a577e8850062df42597bf8db (diff) | |
download | python-setuptools-bitbucket-ec1059458976a5b2810171efdbd02940b97db7aa.tar.gz |
Just pass 'unittest' as argv[0] - the full path to the file shouldn't be relevant
-rw-r--r-- | setuptools/command/test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py index 3e9f5f72..5f93d92e 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -1,6 +1,5 @@ from distutils.errors import DistutilsOptionError from unittest import TestLoader -import unittest import sys from pkg_resources import (resource_listdir, resource_exists, normalize_path, @@ -159,7 +158,7 @@ class test(Command): list(map(sys.modules.__delitem__, del_modules)) unittest_main( - None, None, [unittest.__file__] + self.test_args, + None, None, ['unittest'] + self.test_args, testLoader=self._resolve_as_ep(self.test_loader), testRunner=self._resolve_as_ep(self.test_runner), ) |