Skip to content
Snippets Groups Projects
Commit 73d3f03c authored by polmauri's avatar polmauri Committed by Andreas Mueller
Browse files

[MRG + 1] FIX raise an error message when n_groups > number of groups (#7681) (#7683)

* FIX raise an error message when n_groups > actual number of groups (#7681)

This change addresses issue #7681:
- Raise ValueError when n_groups > actual number of unique groups in LeaveOneGroupOut and LeavePGroupsOut.
- Add unit test.

* Make requested changes

- Check error message with `assert_raise_message`
- Pass parameters to `assert_raise_message` instead of defining functions

* Update condition and exception message
parent ff5c36e3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment