From 5ba84212424ee4ef634281d4c1debc74957d4cd8 Mon Sep 17 00:00:00 2001 From: jraby Date: Fri, 27 Feb 2015 18:42:37 -0500 Subject: [PATCH] Fix reduced_min_part_size so that tests run --- tests/test_s3/test_s3.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_s3/test_s3.py b/tests/test_s3/test_s3.py index 2a14650e3..9a4048a67 100644 --- a/tests/test_s3/test_s3.py +++ b/tests/test_s3/test_s3.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals from six.moves.urllib.request import urlopen from six.moves.urllib.error import HTTPError +from functools import wraps from io import BytesIO import boto @@ -29,6 +30,7 @@ def reduced_min_part_size(f): import moto.s3.models as s3model orig_size = s3model.UPLOAD_PART_MIN_SIZE + @wraps(f) def wrapped(*args, **kwargs): try: s3model.UPLOAD_PART_MIN_SIZE = REDUCED_PART_SIZE