Skip to content

Commit 15b0211

Browse files
committed
xfail test that fails for any warning on python 3.12 or higher with remotestore
1 parent 94e2468 commit 15b0211

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tests/test_group.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import contextlib
44
import operator
55
import pickle
6+
import sys
67
import warnings
78
from typing import TYPE_CHECKING, Any, Literal
89

@@ -1190,7 +1191,22 @@ async def test_require_array(store: Store, zarr_format: ZarrFormat) -> None:
11901191

11911192

11921193
@pytest.mark.parametrize("consolidate", [True, False])
1193-
@pytest.mark.parametrize("store", ["local", "memory", "remote", "zip"], indirect=True)
1194+
@pytest.mark.parametrize(
1195+
"store",
1196+
[
1197+
"local",
1198+
"memory",
1199+
pytest.param(
1200+
"remote",
1201+
marks=pytest.mark.xfail(
1202+
sys.version_info >= (3, 12),
1203+
reason="Valid warnings are raised from botocore on python 3.12+",
1204+
),
1205+
),
1206+
"zip",
1207+
],
1208+
indirect=True,
1209+
)
11941210
async def test_members_name(store: Store, consolidate: bool, zarr_format: ZarrFormat):
11951211
group = Group.from_store(store=store, zarr_format=zarr_format)
11961212
a = group.create_group(name="a")

0 commit comments

Comments
 (0)