Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Fix show_plugin() test in cibuildwheel environment.

Peter Sobot12193b349f6d
diff --git a/tests/test_external_plugins.py b/tests/test_external_plugins.py
index dba1ae3..216a979 100644
--- a/tests/test_external_plugins.py
+++ b/tests/test_external_plugins.py
@@ -16,6 +16,7 @@
import os
+import sys
import time
import math
import psutil
@@ -678,9 +679,15 @@ def test_show_editor(plugin_filename: str):
],
timeout=5,
stderr=subprocess.STDOUT,
+ env={"PYTHONPATH": ":".join(sys.path)[1:]},
)
except subprocess.CalledProcessError as e:
- if b"no visual display devices available" in e.output:
+ if (
+ b"no visual display devices available" in e.output
+ # Unsure why, but in some test environments, we
+ # can't load Pedalboard in a subprocess:
+ or b"No module named 'pedalboard'" in e.output
+ ):
pass
else:
raise