diff --git a/continuous_integration/environment.yaml b/continuous_integration/environment.yaml index ec5668c8e4..d1bb979025 100644 --- a/continuous_integration/environment.yaml +++ b/continuous_integration/environment.yaml @@ -43,7 +43,7 @@ dependencies: - python-eccodes # 2.19.1 seems to cause library linking issues - eccodes>=2.20 - - pytest<8.0.0 + - pytest - pytest-cov - fsspec - botocore>=1.33 diff --git a/satpy/tests/modifier_tests/test_parallax.py b/satpy/tests/modifier_tests/test_parallax.py index 276ff0ebd4..63ddbd8caf 100644 --- a/satpy/tests/modifier_tests/test_parallax.py +++ b/satpy/tests/modifier_tests/test_parallax.py @@ -18,6 +18,7 @@ import math import os import unittest.mock +import warnings import dask.array as da import dask.config @@ -368,13 +369,13 @@ def test_correct_area_clearsky_different_resolutions(self, res1, res2): resolution=res2, area_extent=[-1, -1, 1, 1]) - with pytest.warns(None) as record: + with warnings.catch_warnings(): + warnings.simplefilter("error") sc = make_fake_scene( {"CTH_clear": np.full(area1.shape, np.nan)}, daskify=False, area=area1, common_attrs=_get_attrs(0, 0, 35_000)) - assert len(record) == 0 corrector = ParallaxCorrection(area2) new_area = corrector(sc["CTH_clear"])