pytest.warns(None) was deprecated with pytest 8.0. Additionally I think pytest has an error with respect to catch the test_cube_from_file_warnsDeprecationWarning and does a wrong instantiation of a DeprecationWarning to catch it. The message specificity was removed because if from_file() is deprecated then by definition so is any additional arguments that method takes.
pytest.warns(None)
was deprecated with pytest 8.0. Additionally I think pytest has an error with respect to catch thetest_cube_from_file_warns
DeprecationWarning
and does a wrong instantiation of a DeprecationWarning to catch it. The message specificity was removed because iffrom_file()
is deprecated then by definition so is any additional arguments that method takes.