Convert tests to Python 3

Fix #938
This commit is contained in:
Lorenzo Bolla
2022-01-27 11:35:35 +01:00
parent a40cfc679c
commit 035d5314b0
27 changed files with 241 additions and 284 deletions

View File

@@ -8,10 +8,10 @@ try:
if 'AWS_SECRET_ACCESS_KEY' in os.environ and 'AWS_ACCESS_KEY_ID' in os.environ:
s3_conn = boto.connect_s3()
else:
print "S3 tests disabled: AWS creds not found in the environment"
print("S3 tests disabled: AWS creds not found in the environment")
s3_conn = None
except ImportError, e:
print "S3 tests disabled: can't import boto", e
except ImportError as e:
print("S3 tests disabled: can't import boto", e)
s3_conn = None