Skip tests properly (#31308)
* Skip tests properly * [test_all] * Add 'reason' as kwarg for skipTest * [test_all] Fix up * [test_all]
This commit is contained in:
@@ -181,7 +181,7 @@ class VitsModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
def test_pipeline_feature_extraction(self):
|
||||
super().test_pipeline_feature_extraction()
|
||||
|
||||
@unittest.skip("Need to fix this after #26538")
|
||||
@unittest.skip(reason="Need to fix this after #26538")
|
||||
def test_model_forward(self):
|
||||
set_seed(12345)
|
||||
global_rng.seed(12345)
|
||||
@@ -212,11 +212,11 @@ class VitsModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
with torch.no_grad():
|
||||
_ = model(**self._prepare_for_class(inputs_dict, model_class)).waveform
|
||||
|
||||
@unittest.skip("VITS is not deterministic")
|
||||
@unittest.skip(reason="VITS is not deterministic")
|
||||
def test_determinism(self):
|
||||
pass
|
||||
|
||||
@unittest.skip("VITS is not deterministic")
|
||||
@unittest.skip(reason="VITS is not deterministic")
|
||||
def test_batching_equivalence(self):
|
||||
pass
|
||||
|
||||
@@ -260,11 +260,11 @@ class VitsModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
msg=f"Parameter {name} of model {model_class} seems not properly initialized",
|
||||
)
|
||||
|
||||
@unittest.skip("VITS has no inputs_embeds")
|
||||
@unittest.skip(reason="VITS has no inputs_embeds")
|
||||
def test_inputs_embeds(self):
|
||||
pass
|
||||
|
||||
@unittest.skip("VITS has no input embeddings")
|
||||
@unittest.skip(reason="VITS has no input embeddings")
|
||||
def test_model_get_set_embeddings(self):
|
||||
pass
|
||||
|
||||
|
||||
@@ -62,15 +62,15 @@ class VitsTokenizerTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
ids = tokenizer.encode(txt, add_special_tokens=False)
|
||||
return txt, ids
|
||||
|
||||
@unittest.skip("Adding multicharacter tokens does not work with the VITS tokenizer")
|
||||
@unittest.skip(reason="Adding multicharacter tokens does not work with the VITS tokenizer")
|
||||
def test_add_tokens_tokenizer(self):
|
||||
pass
|
||||
|
||||
@unittest.skip("Adding multicharacter tokens does not work with the VITS tokenizer")
|
||||
@unittest.skip(reason="Adding multicharacter tokens does not work with the VITS tokenizer")
|
||||
def test_encode_decode_with_spaces(self):
|
||||
pass
|
||||
|
||||
@unittest.skip("The VITS tokenizer does not support `is_split_into_words`")
|
||||
@unittest.skip(reason="The VITS tokenizer does not support `is_split_into_words`")
|
||||
def test_pretokenized_inputs(self):
|
||||
pass
|
||||
|
||||
@@ -101,7 +101,7 @@ class VitsTokenizerTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
|
||||
shutil.rmtree(tmpdirname)
|
||||
|
||||
@unittest.skip("Adding multicharacter tokens does not work the VITS tokenizer")
|
||||
@unittest.skip(reason="Adding multicharacter tokens does not work the VITS tokenizer")
|
||||
def test_special_tokens_initialization_with_non_empty_additional_special_tokens(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user