On 27-10-2022 17:25, Miro Hrončok wrote:
On 26. 10. 22 19:40, Sandro wrote:
> I'm getting the ImportError from subject specifically when
> building python-plotnine for f36 (Python 3.10.7).
Yes, importing from .conftest in tests should not be possible.
The same package builds fine for f37 and rawhide (Python 3.11.0).
Maybe pytest somehow made this work? It¨s not just Python 3.11 but
also pytest 7.
True. I guess this needs to be reported upstream then.
> The module the test is trying to import from is present in
> so I'm a bit stupefied as to why this fails. I also tried with
> putting an empty __init__.py in tests/. But this fails with an
> OSError in conftest.py.
Do you happen to have the exact OSError with a traceback? Maybe it's
E OSError: The baseline image directory does not exist. This is most
likely because the test data is not installed. You may need to install
plotnine from source to get the test data.
This is caused by a test in conftest.py itself: