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