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
596afb42
Unverified
Commit
596afb42
authored
Apr 27, 2022
by
Yih-Dar
Committed by
GitHub
Apr 27, 2022
Browse files
Fix check_all_models_are_tested (#16970)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
691cdbb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils/check_repo.py
utils/check_repo.py
+3
-3
No files found.
utils/check_repo.py
View file @
596afb42
...
...
@@ -393,9 +393,9 @@ def check_all_models_are_tested():
failures
.
append
(
f
"
{
module
.
__name__
}
has several test files:
{
test_file
}
."
)
else
:
test_file
=
test_file
[
0
]
new_failures
=
check_models_are_tested
(
module
,
test_file
)
if
new_failures
is
not
None
:
failures
+=
new_failures
new_failures
=
check_models_are_tested
(
module
,
test_file
)
if
new_failures
is
not
None
:
failures
+=
new_failures
if
len
(
failures
)
>
0
:
raise
Exception
(
f
"There were
{
len
(
failures
)
}
failures:
\n
"
+
"
\n
"
.
join
(
failures
))
...
...
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