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

[python-package] limit when num_boost_round warnings are emitted (fixes #6324) #6579

Merged
merged 17 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update tests/python_package_test/utils.py
  • Loading branch information
jameslamb authored Aug 2, 2024
commit c835007b5c847a923f71188c074a541d5f0a11aa
2 changes: 1 addition & 1 deletion tests/python_package_test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def assert_silent(capsys) -> None:
read the recently-captured data into a variable and assert that nothing was written
to stdout or stderr.

This is just hear to turn 3 lines of boilerplate into 1.
This is just here to turn 3 lines of repetitive code into 1.

Note that this does have a side effect... ``capsys.readouterr()`` copies
from a buffer then frees it. So it will only store into ``.out`` and ``.err`` the
Expand Down
Loading