diff --git a/cs_util/tests/test_cosmo.py b/cs_util/tests/test_cosmo.py index e95eb84..bf058c6 100644 --- a/cs_util/tests/test_cosmo.py +++ b/cs_util/tests/test_cosmo.py @@ -9,6 +9,7 @@ from numpy import testing as npt import numpy as np +import pytest from astropy import units import pyccl as ccl @@ -278,7 +279,19 @@ def test_get_cosmo_default(self): npt.assert_equal(pickle.dumps(cos_def), pickle.dumps(self._cos_def)) + @pytest.mark.xfail( + np.lib.NumpyVersion(np.__version__) >= "2.5.0", + reason=( + "pyccl 3.3.4 calls float() on a non-0-d array in boltzmann.py, " + "which numpy>=2.5 turns into a hard TypeError; not a cs_util bug. " + "Stopgap, not the real fix. Tracked in CosmoStat/cs_util#71 " + "(revisit the pyccl/numpy pin and where cosmology code should " + "live)." + ), + strict=False, + ) def test_xipm_theo(self): + """Test ``cs_util.xipm_theo``: xi+/- theory against stored values.""" xip, xim = cosmo.xipm_theo( self._theta, self._cosmo, diff --git a/pyproject.toml b/pyproject.toml index 38eeaa6..48b1764 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,8 +36,11 @@ release = [ "twine", ] test = [ + # pytest-pydocstyle removed: its upstream is archived and incompatible + # with the pytest 9.1 collect-file hookspec (it crashed CI at startup). + # Docstring linting, if wanted, should move to a maintained tool (ruff's + # pydocstyle `D` rules). "pytest", - "pytest-pydocstyle", "pytest-cov", ] docs = [