From e372f56b259a501565ee48060e8d7806c20083d7 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Thu, 21 Mar 2019 14:32:25 +0200 Subject: [PATCH] tests: Fixes Python3 compatibility The Python code used in the example_cluster_dns test is not compatible with Python3. Keeping in mind that Python2 will no longer be supported from 2020 onwards, it is a good idea to address this issue. --- test/e2e/network/example_cluster_dns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/network/example_cluster_dns.go b/test/e2e/network/example_cluster_dns.go index ee0fe420ab8..879bb555ce3 100644 --- a/test/e2e/network/example_cluster_dns.go +++ b/test/e2e/network/example_cluster_dns.go @@ -43,9 +43,9 @@ const queryDnsPythonTemplate string = ` import socket try: socket.gethostbyname('%s') - print 'ok' + print('ok') except: - print 'err'` + print('err')` var _ = SIGDescribe("ClusterDns [Feature:Example]", func() { f := framework.NewDefaultFramework("cluster-dns")