From a358a840b6c0abaa068e6921ea3a44911dcd8f3d 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 ed87400..576a7af 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -6808,6 +6808,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():