I've found that I have to manually set the PYOPENGL_PLATFORM environment variable to osmesa before running tests despite the monkeypatch to set it in yt_idv/tests/test_yt_idv.py. The github action does the same. Not sure what's going on here -- but maybe monkeypatch isn't the way to go? I suspect the environment variable needs to be set before any imports. pytest-env looks nice...
I've found that I have to manually set the
PYOPENGL_PLATFORM
environment variable toosmesa
before running tests despite the monkeypatch to set it inyt_idv/tests/test_yt_idv.py
. The github action does the same. Not sure what's going on here -- but maybe monkeypatch isn't the way to go? I suspect the environment variable needs to be set before any imports. pytest-env looks nice...