Skip to content

Fix false warning if iterator_valid__shuffle=False#908

Merged
thomasjpfan merged 1 commit intomasterfrom
bugfix/false-warning-when-iterator-valid-shuffle-false
Oct 13, 2022
Merged

Fix false warning if iterator_valid__shuffle=False#908
thomasjpfan merged 1 commit intomasterfrom
bugfix/false-warning-when-iterator-valid-shuffle-false

Conversation

@BenjaminBossan
Copy link
Copy Markdown
Collaborator

Resolves #907

The regression initially occurred because the we did not check for the value of iterator_valid__shuffle, just the presence of the key.

Even though there is a test for this, the test didn't detect the error. This is because during a refactor (#751), the parameter validation was moved to initialize() from __init__() but the test was not adjusted to take the change into account. For clarity, I moved the test to a separate function (it used to be a subtest of another test).

Resolves #907

The problem initially occurred because the warning did not check for the
value, just the presence of the key.

Even though there is a test for this, the test didn't detect the error.
This is because during a refactor (#751), the parameter validation was
moved to initialize() from __init__() but the test was not adjusted to
take the change into account.
Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thomasjpfan thomasjpfan merged commit cfe568b into master Oct 13, 2022
@BenjaminBossan BenjaminBossan deleted the bugfix/false-warning-when-iterator-valid-shuffle-false branch October 13, 2022 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants