π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Fix test_io_threading to run on Python 3.6.
Peter Sobot1bac563b12f6
diff --git a/tests/test_io_threading.py b/tests/test_io_threading.pyindex ad6d9bf..52d968d 100644--- a/tests/test_io_threading.py+++ b/tests/test_io_threading.py@@ -18,7 +18,6 @@import randomimport threadingfrom concurrent.futures import ThreadPoolExecutor-from contextlib import nullcontextfrom functools import lru_cachefrom io import BytesIO@@ -28,6 +27,11 @@ import pytestfrom pedalboard import Resamplefrom pedalboard.io import AudioFile+try:+ from contextlib import nullcontext+except ImportError:+ from contextlib import suppress as nullcontext+# The number of iterations to run the test for with and# without a lock around each call to AudioFile's methods:MAX_ITERATIONS = {"lock": 10, "no lock": 100_000}