Convert tests to Python 3

Fix #938
This commit is contained in:
Lorenzo Bolla committed 2022-01-27 15:06:33 +01:00
1 parent a40cfc679c
commit 035d5314b0
27 files changed
+241 -284

No files matched your search

+3 -3
View File
@@ -25,10 +25,10 @@ try:
swift_conn = swiftclient.Connection(auth_url, auth_username,
auth_password, auth_version=1)
else:
print "Swift tests disabled: OpenStack creds not found in the environment"
print("Swift tests disabled: OpenStack creds not found in the environment")
swift_conn = None
except ImportError, e:
print "Swift tests disabled: unable to import swiftclient", e
except ImportError as e:
print("Swift tests disabled: unable to import swiftclient", e)
swift_conn = None