]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135376: Fix and improve test_random (GH-135377)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 Jun 2025 15:26:01 +0000 (18:26 +0300)
committerGitHub <noreply@github.com>
Wed, 18 Jun 2025 15:26:01 +0000 (18:26 +0300)
commitc55512311b7cb8b7c27c19f56cd8f872be29aedc
treeb057b0bc0cb103defa4779d7f943d9d5d648f898
parent21f3d15534c08d9a49d5c119a0e690855173fde4
gh-135376: Fix and improve test_random (GH-135377)

* 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().
Lib/test/test_random.py