Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cs_util/tests/test_cosmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from numpy import testing as npt
import numpy as np
import pytest

from astropy import units
import pyccl as ccl
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Loading