Skip to content

Commit e372f56

Browse files
authored
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.
1 parent ad47274 commit e372f56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/network/example_cluster_dns.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ const queryDnsPythonTemplate string = `
4343
import socket
4444
try:
4545
socket.gethostbyname('%s')
46-
print 'ok'
46+
print('ok')
4747
except:
48-
print 'err'`
48+
print('err')`
4949

5050
var _ = SIGDescribe("ClusterDns [Feature:Example]", func() {
5151
f := framework.NewDefaultFramework("cluster-dns")

0 commit comments

Comments
 (0)