Tests are using deprecated py._path
Since pytest
no longer depends on py
and the package does not specify py
in test dependencies, the tests are now failing, e.g.:
==================================== ERRORS ====================================
_____________ ERROR at setup of TestPlotArea.test_read_multi_chart _____________
@pytest.fixture
def datadir():
"""DATADIR as a LocalPath"""
import os
> from py._path.local import LocalPath
E ModuleNotFoundError: No module named 'py._path'; 'py' is not a package
os = <module 'os' from '/usr/lib/python3.10/os.py'>
openpyxl/chart/tests/conftest.py:9: ModuleNotFoundError
Ideally, could you please replace py._path
from the discontinued py
package with pathlib.Path
?