Show More
@@ -58,11 +58,7 b' import signal' | |||
|
58 | 58 | import socket |
|
59 | 59 | import subprocess |
|
60 | 60 | import sys |
|
61 | try: | |
|
62 | import sysconfig | |
|
63 | except ImportError: | |
|
64 | # sysconfig doesn't exist in Python 2.6 | |
|
65 | sysconfig = None | |
|
61 | import sysconfig | |
|
66 | 62 | import tempfile |
|
67 | 63 | import threading |
|
68 | 64 | import time |
@@ -882,8 +878,7 b' class Test(unittest.TestCase):' | |||
|
882 | 878 | offset = '' if i == 0 else '%s' % i |
|
883 | 879 | env["HGPORT%s" % offset] = '%s' % (self._startport + i) |
|
884 | 880 | env = os.environ.copy() |
|
885 | if sysconfig is not None: | |
|
886 | env['PYTHONUSERBASE'] = sysconfig.get_config_var('userbase') | |
|
881 | env['PYTHONUSERBASE'] = sysconfig.get_config_var('userbase') | |
|
887 | 882 | env['HGEMITWARNINGS'] = '1' |
|
888 | 883 | env['TESTTMP'] = self._testtmp |
|
889 | 884 | env['HOME'] = self._testtmp |
General Comments 0
You need to be logged in to leave comments.
Login now