comparison tests/run-tests.py @ 40981:08f5482a6755

py3: spawn all python instances with legacy stdio enabled on Windows This fixes 6 more tests. See ef7119cd4965.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 17 Dec 2018 18:25:18 -0500
parents ef7119cd4965
children e10adebf8176
comparison
equal deleted inserted replaced
40980:f6987f654356 40981:08f5482a6755
1103 env['HGTESTEXTRAEXTENSIONS'] = b' '.join(extraextensions) 1103 env['HGTESTEXTRAEXTENSIONS'] = b' '.join(extraextensions)
1104 1104
1105 # LOCALIP could be ::1 or 127.0.0.1. Useful for tests that require raw 1105 # LOCALIP could be ::1 or 127.0.0.1. Useful for tests that require raw
1106 # IP addresses. 1106 # IP addresses.
1107 env['LOCALIP'] = _strpath(self._localip()) 1107 env['LOCALIP'] = _strpath(self._localip())
1108
1109 # This has the same effect as Py_LegacyWindowsStdioFlag in exewrapper.c,
1110 # but this is needed for testing python instances like dummyssh,
1111 # dummysmtpd.py, and dumbhttp.py.
1112 if PYTHON3 and os.name == 'nt':
1113 env['PYTHONLEGACYWINDOWSSTDIO'] = '1'
1108 1114
1109 # Reset some environment variables to well-known values so that 1115 # Reset some environment variables to well-known values so that
1110 # the tests produce repeatable output. 1116 # the tests produce repeatable output.
1111 env['LANG'] = env['LC_ALL'] = env['LANGUAGE'] = 'C' 1117 env['LANG'] = env['LC_ALL'] = env['LANGUAGE'] = 'C'
1112 env['TZ'] = 'GMT' 1118 env['TZ'] = 'GMT'