"git@developer.sourcefind.cn:OpenDAS/bitsandbytes.git" did not exist on "c8f564d51c090a14e34b486892efc9013a285cf2"
Unverified Commit 6897aff1 authored by moto's avatar moto Committed by GitHub
Browse files

Avoid "-" symbol in generated test name (#822)

Buck fails to run tests if they contain "-" symbol.
parent 1def3fa9
...@@ -62,7 +62,7 @@ class SmokeTest(TempDirMixin, TorchaudioTestCase): ...@@ -62,7 +62,7 @@ class SmokeTest(TempDirMixin, TorchaudioTestCase):
[8000, 16000], [8000, 16000],
[1, 2], [1, 2],
[-4.2, -0.2, 0, 0.2, 96, 128, 160, 192, 224, 256, 320], [-4.2, -0.2, 0, 0.2, 96, 128, 160, 192, 224, 256, 320],
)), name_func=name_func) )))
@skipIfNoMP3 @skipIfNoMP3
def test_mp3(self, sample_rate, num_channels, bit_rate): def test_mp3(self, sample_rate, num_channels, bit_rate):
"""Run smoke test on mp3 format""" """Run smoke test on mp3 format"""
...@@ -72,7 +72,7 @@ class SmokeTest(TempDirMixin, TorchaudioTestCase): ...@@ -72,7 +72,7 @@ class SmokeTest(TempDirMixin, TorchaudioTestCase):
[8000, 16000], [8000, 16000],
[1, 2], [1, 2],
[-1, 0, 1, 2, 3, 3.6, 5, 10], [-1, 0, 1, 2, 3, 3.6, 5, 10],
)), name_func=name_func) )))
def test_vorbis(self, sample_rate, num_channels, quality_level): def test_vorbis(self, sample_rate, num_channels, quality_level):
"""Run smoke test on vorbis format""" """Run smoke test on vorbis format"""
self.run_smoke_test('vorbis', sample_rate, num_channels, compression=quality_level) self.run_smoke_test('vorbis', sample_rate, num_channels, compression=quality_level)
......
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