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
Unit test random shuffle #71318
Comments
This tests that a specific shuffle result is obtained (which is an implementation specific detail subject to change). An alternate possible test would just check to see that all the inputs are present in the output. |
Changed the test to assertCountEqual which will check that all the inputs are present and equal in the output. |
Okay, this looks fine. I'll apply it within a few days. |
Just checking in on this patch. Any chance of getting it applied within the next few days? |
Yes |
Just giving this one a bump to see if it can be applied soon. |
1 similar comment
Just giving this one a bump to see if it can be applied soon. |
I've just looked at the existing tests for random.shuffle() and found that they already cover this case and do a much more thorough job. The suggested patch doesn't add anything. Sorry, I'm going to close this one -- there isn't any problem being solved. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: