From 3aa980445f887fca83ada5e8a67dfc56931b54b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Sun, 12 May 2019 12:58:29 +0200 Subject: [PATCH] Update to Python3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Functest containers leverage on Python3 instead of python2. https://mail.python.org/pipermail/python-dev/2018-March/152348.html Change-Id: I4f148e91259377b4e3b9076621f192a6e00f6009 Signed-off-by: Cédric Ollivier (cherry picked from commit e38bb1ee4c2a5c2e03ad7af46631da37c5f189ba) --- functest_kubernetes/k8stest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py index 76693e91..c78959ca 100644 --- a/functest_kubernetes/k8stest.py +++ b/functest_kubernetes/k8stest.py @@ -46,7 +46,7 @@ class K8sTesting(testcase.TestCase): process = subprocess.Popen(cmd_line, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - output = process.stdout.read() + output = process.stdout.read().decode("utf-8") if ('Error loading client' in output or 'Unexpected error' in output): raise Exception(output) -- 2.16.6