File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import itertools
1515
1616from dataclasses import asdict
17+ from importlib .metadata import version
1718
1819import numpy as np
1920import pytest
2829from pymc .step_methods .state import equal_dataclass_values
2930from tests .helpers import equal_sampling_states
3031
32+ # PyMC's `ZarrTrace` still uses zarr 2 module-level APIs (`zarr.TempStore`,
33+ # `zarr.MemoryStore`) and the removed `synchronizer` kwarg. When a dependency
34+ # (e.g., installed nutpie) pulls in zarr>=3, the whole suite fails on import /
35+ # attribute access. xfail the module in that case until the port lands.
36+ pytestmark = pytest .mark .xfail (
37+ int (version ("zarr" ).split ("." , 1 )[0 ]) >= 3 ,
38+ reason = "PyMC's ZarrTrace is not yet ported to zarr 3" ,
39+ strict = False ,
40+ )
41+
3142
3243@pytest .fixture (scope = "module" )
3344def model ():
You can’t perform that action at this time.
0 commit comments