From 4c6d0569b32b4e31a3e65c5f695f9277bab4bb2d Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 13 Jun 2017 15:07:54 -0400 Subject: [PATCH] clear key.version_id now that GET requests return x-amz-version-id header Signed-off-by: Casey Bodley --- s3tests/functional/test_s3.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 77af26c..d5493f4 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -6294,6 +6294,8 @@ def test_versioning_obj_plain_null_version_overwrite(): key.set_contents_from_string(content2) eq(key.get_contents_as_string(), content2) + # get_contents_to_string() will set key.version_id, clear it + key.version_id = None version_id = None for k in bucket.list_versions():