(self)
| 1906 | fmean([10, 20, 60], 70) # too many arguments |
| 1907 | |
| 1908 | def test_special_values(self): |
| 1909 | # Rules for special values are inherited from math.fsum() |
| 1910 | fmean = statistics.fmean |
| 1911 | NaN = float('Nan') |
| 1912 | Inf = float('Inf') |
| 1913 | self.assertTrue(math.isnan(fmean([10, NaN])), 'nan') |
| 1914 | self.assertTrue(math.isnan(fmean([NaN, Inf])), 'nan and infinity') |
| 1915 | self.assertTrue(math.isinf(fmean([10, Inf])), 'infinity') |
| 1916 | with self.assertRaises(ValueError): |
| 1917 | fmean([Inf, -Inf]) |
| 1918 | |
| 1919 | def test_weights(self): |
| 1920 | fmean = statistics.fmean |
nothing calls this directly
no test coverage detected