mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
[3.13] gh-123968: Fix lower bound for python -m random --float
(GH-123971) (#124009)
gh-123968: Fix lower bound for `python -m random --float` (GH-123971)
(cherry picked from commit a362c41bc9
)
Co-authored-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
a439f8531f
commit
7b8affa46b
3 changed files with 6 additions and 5 deletions
|
@ -1433,8 +1433,8 @@ class CommandLineTest(unittest.TestCase):
|
|||
("'a a' 'b b' 'c c'", "b b"),
|
||||
("--integer 5", 4),
|
||||
("5", 4),
|
||||
("--float 2.5", 2.266632777287572),
|
||||
("2.5", 2.266632777287572),
|
||||
("--float 2.5", 2.1110546288126204),
|
||||
("2.5", 2.1110546288126204),
|
||||
]:
|
||||
random.seed(0)
|
||||
self.assertEqual(random.main(shlex.split(command)), expected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue