mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| gstplayer.py | ||