Unverified Commit 21558490 authored by moto's avatar moto Committed by GitHub
Browse files

Fix test backend initialization (#537)

parent 9bdaefc8
......@@ -76,7 +76,7 @@ def filter_backends_with_mp3(backends):
with AudioBackendScope(backend):
torchaudio.load(test_filepath)
return True
except RuntimeError:
except (RuntimeError, ImportError):
return False
return [backend for backend in backends if supports_mp3(backend)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment