Skip to content

Commit 5649c59

Browse files
Apply suggestion from @skirpichev
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent a0fb874 commit 5649c59

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/test/test_random.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,11 +1076,11 @@ def test_avg_std(self):
10761076
self.assertAlmostEqual(s2/(N-1), sigmasqrd, places=2,
10771077
msg='%s%r' % (variate.__name__, args))
10781078
def test_binomialvariate_log_zero(self):
1079-
# gh-149222: Variety random() return 0.0 no input Error
1080-
with unittest.mock.patch.object(random.Random, 'random', return_value=0.0):
1081-
result = random.binomialvariate(10, 0.5)
1082-
self.assertIsInstance(result, int)
1083-
self.assertIn(result, range(11))
1079+
# gh-149222: Variety random() return 0.0 no input Error
1080+
with unittest.mock.patch.object(random.Random, 'random', return_value=0.0):
1081+
result = random.binomialvariate(10, 0.5)
1082+
self.assertIsInstance(result, int)
1083+
self.assertIn(result, range(11))
10841084

10851085
def test_constant(self):
10861086
g = random.Random()

0 commit comments

Comments
 (0)