aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:15:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-10-10 20:15:25 -0400
commit476381578991476afeca2e28a96b51fdbef50c13 (patch)
treef2bb7b400c16728e9a8871094d94d4da8690beef /setuptools
parent552ca4d4c712c68c90601ff3f70cf4115b1636ac (diff)
downloadexternal_python_setuptools-476381578991476afeca2e28a96b51fdbef50c13.tar.gz
external_python_setuptools-476381578991476afeca2e28a96b51fdbef50c13.tar.bz2
external_python_setuptools-476381578991476afeca2e28a96b51fdbef50c13.zip
Just pass 'unittest' as argv[0] - the full path to the file shouldn't be relevant
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/command/test.py3
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),
)