Skip to content

Commit

Permalink
Still raise assertion error when subdirs only are wrongs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Mar 28, 2023
1 parent 0ac141c commit aa87ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/testutils/functional/find_functional_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def walk(path: Path) -> Iterator[Path]:
violations_msgs.add(str(e).replace(error_msg, ""))
else:
yield _file_or_dir.resolve()
if violations:
if violations or violations_msgs:
_msg = error_msg
for offending_file, number in violations:
_msg += f"- {offending_file}: {number} when the max is {max_file_per_directory}\n"
Expand Down

0 comments on commit aa87ebb

Please sign in to comment.