ESSS / pytest-regressions

Pytest plugin for regression testing: https://pytest-regressions.readthedocs.io
MIT License
185 stars 36 forks source link

numpy 2 DeprecationWarning #173

Open majidaldo opened 2 months ago

majidaldo commented 2 months ago
.venv\Lib\site-packages\pytest_regressions\dataframe_regression.py:250: DeprecationWarning: Data type alias 'a' was deprecated in NumPy 2.0. Use the 'S' alias instead.
    assert array.dtype not in ["m", "M", "O", "S", "a", "U", "V"], (
majidaldo commented 2 months ago

On a related note, it might be just easier to just convert a df to a dict and use generic data_regression.

nicoddemus commented 2 months ago

Thanks for the report!