From bfce4a980d828285e689d85f5e9fdf286b5393a3 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Mon, 2 Oct 2017 16:09:23 -0400 Subject: [PATCH] Remove use of batch when cleaning up buckets. Allows 429 errors to be handled by retry. See: https://github.com/GoogleCloudPlatform/google-cloud-python/pull/4032#issuecomment-332032204 --- storage/tests/system.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/storage/tests/system.py b/storage/tests/system.py index 72122ef3b21a..a116b21a93fa 100644 --- a/storage/tests/system.py +++ b/storage/tests/system.py @@ -83,10 +83,9 @@ def setUp(self): self.case_buckets_to_delete = [] def tearDown(self): - with Config.CLIENT.batch(): - for bucket_name in self.case_buckets_to_delete: - bucket = Config.CLIENT.bucket(bucket_name) - retry_429(bucket.delete)() + for bucket_name in self.case_buckets_to_delete: + bucket = Config.CLIENT.bucket(bucket_name) + retry_429(bucket.delete)() def test_create_bucket(self): new_bucket_name = 'a-new-bucket' + unique_resource_id('-')