mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
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.
This commit is contained in:
parent
ad4727440c
commit
e372f56b25
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user