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:
@@ -159,10 +159,12 @@ class ImageFeatureExtractionPipelineTests(unittest.TestCase):
|
||||
|
||||
def get_test_pipeline(self, model, tokenizer, processor):
|
||||
if processor is None:
|
||||
self.skipTest("No image processor")
|
||||
self.skipTest(reason="No image processor")
|
||||
|
||||
elif type(model.config) in TOKENIZER_MAPPING:
|
||||
self.skipTest("This is a bimodal model, we need to find a more consistent way to switch on those models.")
|
||||
self.skipTest(
|
||||
reason="This is a bimodal model, we need to find a more consistent way to switch on those models."
|
||||
)
|
||||
|
||||
elif model.config.is_encoder_decoder:
|
||||
self.skipTest(
|
||||
|
||||
Reference in New Issue
Block a user