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.