equal
deleted
inserted
replaced
1333 env['PYTHONUSERBASE'] = sysconfig.get_config_var('userbase') or '' |
1333 env['PYTHONUSERBASE'] = sysconfig.get_config_var('userbase') or '' |
1334 env['HGEMITWARNINGS'] = '1' |
1334 env['HGEMITWARNINGS'] = '1' |
1335 env['TESTTMP'] = _bytes2sys(self._testtmp) |
1335 env['TESTTMP'] = _bytes2sys(self._testtmp) |
1336 env['TESTNAME'] = self.name |
1336 env['TESTNAME'] = self.name |
1337 env['HOME'] = _bytes2sys(self._testtmp) |
1337 env['HOME'] = _bytes2sys(self._testtmp) |
|
1338 if os.name == 'nt': |
|
1339 # py3.8+ ignores HOME: https://bugs.python.org/issue36264 |
|
1340 env['USERPROFILE'] = env['HOME'] |
1338 formated_timeout = _bytes2sys(b"%d" % default_defaults['timeout'][1]) |
1341 formated_timeout = _bytes2sys(b"%d" % default_defaults['timeout'][1]) |
1339 env['HGTEST_TIMEOUT_DEFAULT'] = formated_timeout |
1342 env['HGTEST_TIMEOUT_DEFAULT'] = formated_timeout |
1340 env['HGTEST_TIMEOUT'] = _bytes2sys(b"%d" % self._timeout) |
1343 env['HGTEST_TIMEOUT'] = _bytes2sys(b"%d" % self._timeout) |
1341 # This number should match portneeded in _getport |
1344 # This number should match portneeded in _getport |
1342 for port in xrange(3): |
1345 for port in xrange(3): |