From a16586995afe09b283c500e20fe559f592b113ba Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 25 Jul 2020 11:58:02 -0700 Subject: [PATCH] test: set `PYTHONIOENCODING` for all targets This encodes the printing stream, and fixes the printing for the message in `incrParse/simple`. --- test/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lit.cfg b/test/lit.cfg index 251985142f7e3..e81b6bcea239b 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -183,7 +183,7 @@ def append_to_env_path(directory): config.environment['PATH'] = \ os.path.pathsep.join((directory, config.environment['PATH'])) -if kIsWindows: +if sys.version_info[0] >= 3: config.environment['PYTHONIOENCODING'] = 'UTF8' # Tweak the PATH to include the tools dir and the scripts dir.