Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
21558490
Unverified
Commit
21558490
authored
Apr 13, 2020
by
moto
Committed by
GitHub
Apr 13, 2020
Browse files
Fix test backend initialization (#537)
parent
9bdaefc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/common_utils.py
test/common_utils.py
+1
-1
No files found.
test/common_utils.py
View file @
21558490
...
...
@@ -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
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment