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:
@@ -270,15 +270,16 @@ class PerceiverTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
tokenizer = self.perceiver_tokenizer
|
||||
self.assertEqual(tokenizer.decode([178]), "<EFBFBD>")
|
||||
|
||||
# tokenizer does not have vocabulary
|
||||
@unittest.skip(reason="tokenizer does not have vocabulary")
|
||||
def test_get_vocab(self):
|
||||
pass
|
||||
|
||||
# inputs cannot be pretokenized since ids depend on whole input string and not just on single characters
|
||||
@unittest.skip(reason="inputs cannot be pretokenized")
|
||||
def test_pretokenized_inputs(self):
|
||||
# inputs cannot be pretokenized since ids depend on whole input string and not just on single characters
|
||||
pass
|
||||
|
||||
# tests all ids in vocab => vocab doesn't exist so unnecessary to test
|
||||
@unittest.skip(reason="vocab does not exist")
|
||||
def test_conversion_reversible(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user