diff --git a/cmake/EnvConfig/TestEnvOps.py b/cmake/EnvConfig/TestEnvOps.py index b615ef65f995bd521ea504d813924b5f7f22febc..232a819a4f57e22c7a79012f9c905e57e60038e7 100644 --- a/cmake/EnvConfig/TestEnvOps.py +++ b/cmake/EnvConfig/TestEnvOps.py @@ -3,6 +3,7 @@ Created on Jul 12, 2011 @author: mplajner ''' +from __future__ import print_function import unittest import os import sys @@ -124,7 +125,7 @@ class TemporaryDir(object): if not self.keep: self.remove() else: - print "WARNING: not removing temporary directory", self.path + print("WARNING: not removing temporary directory", self.path) return False diff --git a/cmake/tests/test_LBCORE_716.py b/cmake/tests/test_LBCORE_716.py index cd891691ec1e5e7e551845052f7e565e10129c77..15c1c6d7a6d6f7d8c5999591d42bd312f91f054f 100644 --- a/cmake/tests/test_LBCORE_716.py +++ b/cmake/tests/test_LBCORE_716.py @@ -27,6 +27,7 @@ def build(): build_proc = Popen(['make', 'VERBOSE=1'], cwd=base_dir, stdout=PIPE, stderr=PIPE) build_log, build_err = build_proc.communicate() + build_log, build_err = build_log.decode('utf-8'), build_err.decode('utf-8') build_returncode = build_proc.returncode @@ -59,7 +60,8 @@ def test_env(): getenv = Popen([xenv_cmd, '--xml', envfile, 'printenv', 'ROOT_INCLUDE_PATH'], stdout=PIPE, stderr=PIPE) - out, _err = getenv.communicate() + out, _ = getenv.communicate() + out = out.decode('utf-8') assert getenv.returncode == 0, getenv.returncode root_inc_path = [os.path.relpath(l, base_dir)[0]