diff --git a/translation/samples/snippets/translate_v3_batch_translate_text_with_model_test.py b/translation/samples/snippets/translate_v3_batch_translate_text_with_model_test.py index 36c52ae22e4d..a7801f604024 100644 --- a/translation/samples/snippets/translate_v3_batch_translate_text_with_model_test.py +++ b/translation/samples/snippets/translate_v3_batch_translate_text_with_model_test.py @@ -28,7 +28,7 @@ @pytest.fixture(scope="function") def bucket(): """Create a temporary bucket to store annotation output.""" - bucket_name = str(uuid.uuid1()) + bucket_name = f'tmp-{uuid.uuid4().hex}' storage_client = storage.Client() bucket = storage_client.create_bucket(bucket_name)