We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48dd2cb commit 4a2a21bCopy full SHA for 4a2a21b
test/integration/conftest.py
@@ -7,6 +7,8 @@
7
# License https://www.backblaze.com/using_b2_code.html
8
#
9
######################################################################
10
+
11
+import contextlib
12
import sys
13
14
from os import environ, path
@@ -53,10 +55,8 @@ def realm() -> str:
53
55
def bucket_name(b2_api) -> str:
54
56
bucket = b2_api.create_bucket()
57
yield bucket.name
- try:
58
+ with contextlib.suppress(BucketIdNotFound):
59
b2_api.clean_bucket(bucket)
- except BucketIdNotFound:
- pass
60
61
62
@pytest.fixture(scope='function') # , autouse=True)
0 commit comments