646012c26db9335f69216c5d8656090c4211f323,storage/cloud-client/acl_test.py,,test_bucket,#,43

Before Change


    object_default_acl = google.cloud.storage.acl.DefaultObjectACL(bucket)
    acl.reload()
    object_default_acl.reload()
    time.sleep(1)  // bucket ops rate limited 1 update per second
    yield bucket
    time.sleep(1)  // bucket ops rate limited 1 update per second
    acl.save()

After Change


    Yields a bucket that is deleted after the test completes.
    bucket = None
    while bucket is None or bucket.exists():
        bucket_name = "acl-test-{}".format(uuid.uuid4())
        bucket = storage.Client().bucket(bucket_name)
    bucket.create()
    yield bucket
    bucket.delete(force=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 646012c26db9335f69216c5d8656090c4211f323
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/acl_test.py
Class Name:
Method Name: test_bucket


Project Name: pantsbuild/pants
Commit Name: 7c355f4ee18b25fcab7c501ba0b531ac1b564350
Time: 2018-01-25
Author: kwlzn@users.noreply.github.com
File Name: src/python/pants/pantsd/service/store_gc_service.py
Class Name: StoreGCService
Method Name: run


Project Name: home-assistant/home-assistant
Commit Name: cfc23b0091d55b53eef9654fe0e9134ac12b8c38
Time: 2015-09-12
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_history.py
Class Name: TestComponentHistory
Method Name: test_get_states


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 87fc2b26df5eef261a3423b15b10ef0fd69c6bf4
Time: 2017-11-08
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx_adv.py
Class Name:
Method Name: