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
6897aff1
Unverified
Commit
6897aff1
authored
Jul 23, 2020
by
moto
Committed by
GitHub
Jul 23, 2020
Browse files
Avoid "-" symbol in generated test name (#822)
Buck fails to run tests if they contain "-" symbol.
parent
1def3fa9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/sox_io_backend/smoke_test.py
test/sox_io_backend/smoke_test.py
+2
-2
No files found.
test/sox_io_backend/smoke_test.py
View file @
6897aff1
...
...
@@ -62,7 +62,7 @@ class SmokeTest(TempDirMixin, TorchaudioTestCase):
[
8000
,
16000
],
[
1
,
2
],
[
-
4.2
,
-
0.2
,
0
,
0.2
,
96
,
128
,
160
,
192
,
224
,
256
,
320
],
))
,
name_func
=
name_func
)
)))
@
skipIfNoMP3
def
test_mp3
(
self
,
sample_rate
,
num_channels
,
bit_rate
):
"""Run smoke test on mp3 format"""
...
...
@@ -72,7 +72,7 @@ class SmokeTest(TempDirMixin, TorchaudioTestCase):
[
8000
,
16000
],
[
1
,
2
],
[
-
1
,
0
,
1
,
2
,
3
,
3.6
,
5
,
10
],
))
,
name_func
=
name_func
)
)))
def
test_vorbis
(
self
,
sample_rate
,
num_channels
,
quality_level
):
"""Run smoke test on vorbis format"""
self
.
run_smoke_test
(
'vorbis'
,
sample_rate
,
num_channels
,
compression
=
quality_level
)
...
...
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