yt-project / yt_idv

Interactive volume rendering for yt
Other
9 stars 6 forks source link

PYOPENGL_PLATFORM not being set in pytest context? #144

Open chrishavlin opened 3 weeks ago

chrishavlin commented 3 weeks ago

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...