beets/beetsplug/bpd
Ognyan Moore aa2dc9005f
Catch ValueError when setting gst required version
pytest.importskip is used to catch the case when beetsplug.bpd cannot be
imported. On macOS, the gi module was able to be imported, but when
trying to specify `gi.require_version`, a ValueError is raised about
Gst being unavailable. pytest does not catch this ValueError during
importskip as it is not an ImportError, and thus the test suite errors
during the test collection phase.

With this change, we catch the ValueError, and re-raise it as an
ImportError and pytest gracefully skips those tests.
2025-11-19 14:43:30 +03:00
..
__init__.py pyupgrade Python 3.10 2025-11-08 12:09:52 +00:00
gstplayer.py Catch ValueError when setting gst required version 2025-11-19 14:43:30 +03:00