aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-05-12 12:58:29 +0200
committerCédric Ollivier <ollivier.cedric@gmail.com>2019-05-24 11:13:08 +0200
commitb7f4cd4e07e1e03dd57cf4e48ef87aef3ebd388b (patch)
tree42db79b83391a04f5fa2f7640c7e78d974ee26db /functest_kubernetes
parent655a078751b1d9485cf7391a52ee5cc764c0824f (diff)
Update to Python3
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 <cedric.ollivier@orange.com> (cherry picked from commit e38bb1ee4c2a5c2e03ad7af46631da37c5f189ba)
Diffstat (limited to 'functest_kubernetes')
-rw-r--r--functest_kubernetes/k8stest.py2
1 files changed, 1 insertions, 1 deletions
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)