mirror of
https://github.com/rommapp/romm.git
synced 2026-07-01 08:16:21 +00:00
Pytest v8.2 introduced the `PYTEST_VERSION` environment variable [1], that can be used to check if code is running from within a pytest run. This way, we can avoid checking the loaded `sys` modules. [1] https://docs.pytest.org/en/stable/changelog.html#id57