Skip to content

Commit

Permalink
Support print() function in test/
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Aug 27, 2015
1 parent 9ae66a7 commit 727cb8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/integration/cleanup_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def delete_aws_eips(get_func, attr, opts):
try:
eip_log = open(opts.eip_log, 'r').read().splitlines()
except IOError:
print opts.eip_log, 'not found.'
print('%s not found.' % opts.eip_log)
return

for item in get_func():
Expand Down Expand Up @@ -176,4 +176,4 @@ def parse_args():
delete_aws_instances(aws.get_all_instances(filters=filters), opts)

except KeyboardInterrupt as e:
print "\nExiting on user command."
print("\nExiting on user command.")
2 changes: 1 addition & 1 deletion test/integration/cleanup_gce.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ def get_snapshots():
# Delete matching disks
delete_gce_resources(gce.list_volumes, 'name', opts)
except KeyboardInterrupt as e:
print "\nExiting on user command."
print("\nExiting on user command.")
2 changes: 1 addition & 1 deletion test/integration/consul_running.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
import consul
consul = consul.Consul(host='0.0.0.0', port=8500)
consul.catalog.nodes()
print "True"
print("True")
except:
pass
2 changes: 1 addition & 1 deletion test/integration/setup_gce.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def parse_args():
gce.create_volume(
size=10, name=prefix+'-extra', location='us-central1-a')
except KeyboardInterrupt as e:
print "\nExiting on user command."
print("\nExiting on user command.")

0 comments on commit 727cb8a

Please sign in to comment.