cpython: 4c4f8b0c5b30 (original) (raw)

--- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -1600,6 +1600,22 @@ class TestMedianGrouped(TestMedian): data = [220, 220, 240, 260, 260, 260, 260, 280, 280, 300, 320, 340] self.assertEqual(self.func(data, 20), 265.0)

+ class TestMode(NumericTestCase, AverageMixin, UnivariateTypeMixin): # Test cases for the discrete version of mode.