tests: 3.x syntax compat for tests/data/stubs/

issue510
David Wilson 6 years ago
parent 27a4001f4f
commit 3f46c9569c

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python
# Mainly for use in stubconnections/kubectl.yml # Mainly for use in stubconnections/kubectl.yml
print 'PID: 1' print('PID: 1')

@ -5,7 +5,7 @@ import os
# setns.py fetching leader PID. # setns.py fetching leader PID.
if sys.argv[1] == 'info': if sys.argv[1] == 'info':
print 'Pid: 1' print('Pid: 1')
sys.exit(0) sys.exit(0)
os.environ['ORIGINAL_ARGV'] = repr(sys.argv) os.environ['ORIGINAL_ARGV'] = repr(sys.argv)

Loading…
Cancel
Save