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
5764efe5
"tests/models/mpnet/test_tokenization_mpnet.py" did not exist on "00aa9dbca29dcf0e3a624354ef5c80a8e5226339"
Unverified
Commit
5764efe5
authored
Dec 05, 2022
by
Sylvain Gugger
Committed by
GitHub
Dec 05, 2022
Browse files
Fix test for file not found (#20604)
parent
720e9599
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/auto/test_modeling_tf_auto.py
tests/models/auto/test_modeling_tf_auto.py
+1
-1
No files found.
tests/models/auto/test_modeling_tf_auto.py
View file @
5764efe5
...
...
@@ -281,7 +281,7 @@ class TFAutoModelTest(unittest.TestCase):
def
test_model_file_not_found
(
self
):
with
self
.
assertRaisesRegex
(
EnvironmentError
,
"hf-internal-testing/config-no-model does not appear to have a file named
tf
_model.
h5
"
,
"hf-internal-testing/config-no-model does not appear to have a file named
pytorch
_model.
bin
"
,
):
_
=
TFAutoModel
.
from_pretrained
(
"hf-internal-testing/config-no-model"
)
...
...
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