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 | 476381578991476afeca2e28a96b51fdbef50c13 (patch) | |
tree | f2bb7b400c16728e9a8871094d94d4da8690beef /setuptools/command/test.py | |
parent | 552ca4d4c712c68c90601ff3f70cf4115b1636ac (diff) | |
download | python-setuptools-git-476381578991476afeca2e28a96b51fdbef50c13.tar.gz |
Just pass 'unittest' as argv[0] - the full path to the file shouldn't be relevant
Diffstat (limited to 'setuptools/command/test.py')
-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), ) |