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:
@@ -384,11 +384,11 @@ class LongformerModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCa
|
||||
config_and_inputs = self.model_tester.prepare_config_and_inputs()
|
||||
self.model_tester.create_and_check_for_multiple_choice(*config_and_inputs)
|
||||
|
||||
@unittest.skip(reason="Longformer cannot keep gradients in attention or hidden states")
|
||||
def test_retain_grad_hidden_states_attentions(self):
|
||||
# longformer cannot keep gradients in attentions or hidden states
|
||||
return
|
||||
|
||||
@unittest.skip("LongFormer calculates global attn only when attn_mask has non-zero elements")
|
||||
@unittest.skip(reason="LongFormer calculates global attn only when attn_mask has non-zero elements")
|
||||
def test_batching_equivalence(self):
|
||||
return
|
||||
|
||||
|
||||
@@ -166,6 +166,7 @@ class LongformerTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
first_char = tokenizer.convert_ids_to_tokens(encoded[mask_loc + 1])[0]
|
||||
self.assertNotEqual(first_char, space_encoding)
|
||||
|
||||
@unittest.skip
|
||||
def test_pretokenized_inputs(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user