summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2021-12-10 02:24:50 (GMT)
committerGitHub <noreply@github.com>2021-12-10 02:24:50 (GMT)
commit3fee7776e6ed8ab023a0220da1daf3160fda868b (patch)
tree0cbbcea0f930d58f5bf0d659bd187b0390faf61a /Lib/test/test_random.py
parent50669083fe16a42cba90b5dd8c1a017751f69fd8 (diff)
downloadcpython-3fee7776e6ed8ab023a0220da1daf3160fda868b.zip
cpython-3fee7776e6ed8ab023a0220da1daf3160fda868b.tar.gz
cpython-3fee7776e6ed8ab023a0220da1daf3160fda868b.tar.bz2
Move error test to the function that needs it. Improve error message. (GH-30008)
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r--Lib/test/test_random.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index cdae889..b80aeca 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -816,10 +816,6 @@ class MersenneTwister_TestBasicOps(TestBasicOps, unittest.TestCase):
maxsize+1, maxsize=maxsize
)
self.gen._randbelow_without_getrandbits(5640, maxsize=maxsize)
- # issue 33203: test that _randbelow returns zero on
- # n == 0 also in its getrandbits-independent branch.
- x = self.gen._randbelow_without_getrandbits(0, maxsize=maxsize)
- self.assertEqual(x, 0)
# This might be going too far to test a single line, but because of our
# noble aim of achieving 100% test coverage we need to write a case in