π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Allow passing tests even if TensorFlow is not installed.
Peter Sobot4cdc15ba215c
diff --git a/tests/test_tensorflow.py b/tests/test_tensorflow.pyindex f1ba4af..ffeeeda 100644--- a/tests/test_tensorflow.py+++ b/tests/test_tensorflow.py@@ -14,25 +14,17 @@# See the License for the specific language governing permissions and# limitations under the License.-import sys-import pytest-import platformimport numpy as np+import pytest+import pedalboard- sys.version_info.minor <= 6, reason="TensorFlow not supported on Python 3.6 anymore."-)- sys.version_info.minor >= 10, reason="TensorFlow not supported on Python 3.10+ yet."-)- (platform.processor() == "arm" and platform.system() == "Darwin"),- reason="TensorFlow not supported on M1 Macs yet.",-)def test_can_be_called_in_tensorflow_data_pipeline():- import tensorflow as tf+ try:+ import tensorflow as tf+ except ImportError:+ pytest.skip("TensorFlow not installed.")sr = 48000plugins = pedalboard.Pedalboard([pedalboard.Gain(), pedalboard.Reverb()])