From f1f86a0de066a25a8b3e5e2f4182e44a17396ac0 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 16 May 2012 13:32:33 -0700 Subject: [PATCH] test_s3: key.set_contents_from_file() rewind on dual write This fixes a failure with boto 2.4.0. Signed-off-by: Yehuda Sadeh --- s3tests/functional/test_s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 419dfe8..0fbd725 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -3143,7 +3143,7 @@ def _test_atomic_dual_write(file_size): # but before we're done, try to write all A's fp_a = FakeWriteFile(file_size, 'A') fp_b = FakeWriteFile(file_size, 'B', - lambda: key2.set_contents_from_file(fp_a) + lambda: key2.set_contents_from_file(fp_a, rewind=True) ) key.set_contents_from_file(fp_b)