We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b201f20 commit e3948faCopy full SHA for e3948fa
sdks/python/apache_beam/ml/transforms/base_test.py
@@ -17,8 +17,10 @@
17
# pytype: skip-file
18
19
import os
20
+import secrets
21
import shutil
22
import tempfile
23
+import time
24
import typing
25
import unittest
26
from collections.abc import Sequence
@@ -699,7 +701,7 @@ def test_mltransform_to_ptransform_wrapper(self):
699
701
700
702
@unittest.skipIf(apiclient is None, 'apache_beam[gcp] is not installed.')
703
def test_with_gcs_location_with_none_options(self):
- path = 'gs://fake_path'
704
+ path = f"gs://fake_path_{secrets.token_hex(3)}_{int(time.time())}"
705
with self.assertRaises(RuntimeError):
706
self.attribute_manager.save_attributes(
707
ptransform_list=[], artifact_location=path, options=None)
0 commit comments