-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-135376: Fix and improve test_random #135377
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
Conversation
* Remove duplicated code. Tests for Random and SystemRandom now share the code. * Move implementation agnostic tests that was only run for SystemRandom, so they are now run for Random too. * Add tests for __index__() support. * Add tests for randint().
33422b0
to
00fd256
Compare
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
* Remove duplicated code. Tests for Random and SystemRandom now share the code. * Move implementation agnostic tests that was only run for SystemRandom, so they are now run for Random too. * Add tests for __index__() support. * Add tests for randint(). (cherry picked from commit c555123) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-135680 is a backport of this pull request to the 3.14 branch. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
* Remove duplicated code. Tests for Random and SystemRandom now share the code. * Move implementation agnostic tests that was only run for SystemRandom, so they are now run for Random too. * Add tests for __index__() support. * Add tests for randint(). (cherry picked from commit c555123) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
__index__()
support.