Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Lib/test/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3105,6 +3105,12 @@ def test_quantiles(self):
self.assertTrue(all(math.isclose(e, a, abs_tol=0.0001)
for e, a in zip(expected, actual)))

def test_quantiles_invalid_n(self):
Z = self.module.NormalDist()
with self.assertRaises(self.module.StatisticsError) as cm:
Z.quantiles(0)
self.assertEqual(str(cm.exception), 'n must be at least 1')

def test_overlap(self):
NormalDist = self.module.NormalDist

Expand Down
Loading