Skip to content

Commit 46d221f

Browse files
authored
test: s3: try using boto3.client
1 parent 17512fe commit 46d221f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/func/test_repro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,8 @@ def cmd(self, i, o):
964964
return "aws s3 cp {} {}".format(i, o)
965965

966966
def write(self, bucket, key, body):
967-
s3 = boto3.resource("s3")
968-
s3.Bucket(bucket).put_object(Key=key, Body=body)
967+
s3 = boto3.client("s3")
968+
s3.put_object(Bucket=bucket, Key=key, Body=body)
969969

970970

971971
class TestReproExternalGS(TestReproExternalBase):

0 commit comments

Comments
 (0)