Skip to content

Commit 84ae116

Browse files
committed
Added a check for gstream plugin issues on windows.
1 parent 73dda4f commit 84ae116

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_plugins.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,11 @@ def test_import_plugin(self, caplog, plugin_name): #
579579
"""Test that a plugin is importable without an error using the
580580
load_plugins function."""
581581

582+
# skip gstreamer plugins on windows
583+
gstreamer_plugins = ["bpd", "replaygain"]
584+
if sys.platform == "win32" and plugin_name in gstreamer_plugins:
585+
pytest.xfail("GStreamer is not available on Windows: {plugin_name}")
586+
582587
caplog.set_level(logging.WARNING)
583588
caplog.clear()
584589
plugins.load_plugins([plugin_name])

0 commit comments

Comments
 (0)