(self)
| 2101 | self.func = statistics.pstdev |
| 2102 | |
| 2103 | def test_compare_to_variance(self): |
| 2104 | # Test that stdev is, in fact, the square root of variance. |
| 2105 | data = [random.uniform(-17, 24) for _ in range(1000)] |
| 2106 | expected = math.sqrt(statistics.pvariance(data)) |
| 2107 | self.assertEqual(self.func(data), expected) |
| 2108 | |
| 2109 | def test_center_not_at_mean(self): |
| 2110 | # See issue: 40855 |
nothing calls this directly
no test coverage detected