Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests skip #32012

Merged
merged 4 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/models/big_bird/test_modeling_big_bird.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def test_block_sparse_attention_probs(self):
"""

if not self.test_attention_probs:
self.skip("test_attention_probs is set to False")
self.skipTest("test_attention_probs is set to False")

model = BigBirdModel.from_pretrained(
"google/bigbird-roberta-base", attention_type="block_sparse", num_random_blocks=3, block_size=16
Expand Down
2 changes: 1 addition & 1 deletion tests/models/whisper/test_modeling_whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3335,7 +3335,7 @@ def test_equivalence_flax_to_pt(self):
fx_model_class_name = "Flax" + model_class.__name__

if not hasattr(transformers, fx_model_class_name):
self.skip("Flax model does not exist")
self.skipTest("Flax model does not exist")

# Output all for aggressive testing
config.output_hidden_states = True
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tokenization_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@ def test_np_encode_plus_sent_to_model(self):
config = config_class()

if config.is_encoder_decoder or config.pad_token_id is None:
self.skip("Model is not an encoder-decoder model or has no set pad token id")
self.skipTest("Model is not an encoder-decoder model or has no set pad token id")

# Build sequence
first_ten_tokens = list(tokenizer.get_vocab().keys())[:10]
Expand Down
Loading