Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
691586b0
Unverified
Commit
691586b0
authored
Jul 17, 2024
by
Pavel Iakubovskii
Committed by
GitHub
Jul 17, 2024
Browse files
Fix tests skip (#32012)
* [run-slow] clip * [run-slow] clip * Fix skip -> skipTest * [run-slow] clip
parent
24cfcc21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tests/models/big_bird/test_modeling_big_bird.py
tests/models/big_bird/test_modeling_big_bird.py
+1
-1
tests/models/whisper/test_modeling_whisper.py
tests/models/whisper/test_modeling_whisper.py
+1
-1
tests/test_tokenization_common.py
tests/test_tokenization_common.py
+1
-1
No files found.
tests/models/big_bird/test_modeling_big_bird.py
View file @
691586b0
...
...
@@ -716,7 +716,7 @@ class BigBirdModelIntegrationTest(unittest.TestCase):
"""
if
not
self
.
test_attention_probs
:
self
.
skip
(
"test_attention_probs is set to False"
)
self
.
skip
Test
(
"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
...
...
tests/models/whisper/test_modeling_whisper.py
View file @
691586b0
...
...
@@ -3335,7 +3335,7 @@ class WhisperEncoderModelTest(ModelTesterMixin, GenerationTesterMixin, unittest.
fx_model_class_name
=
"Flax"
+
model_class
.
__name__
if
not
hasattr
(
transformers
,
fx_model_class_name
):
self
.
skip
(
"Flax model does not exist"
)
self
.
skip
Test
(
"Flax model does not exist"
)
# Output all for aggressive testing
config
.
output_hidden_states
=
True
...
...
tests/test_tokenization_common.py
View file @
691586b0
...
...
@@ -2678,7 +2678,7 @@ class TokenizerTesterMixin:
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
.
skip
Test
(
"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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment