diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2021-08-30 20:57:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 20:57:30 -0500 |
commit | 793f55bde9b0299100c12ddb0e6949c6eb4d85e5 (patch) | |
tree | 85e9b2b887734dca9b4c8681ee7953924506acf8 /Lib/test/test_statistics.py | |
parent | 044e8d866fdde3804bdb2282c7d23a8074de8f6f (diff) | |
download | cpython-git-793f55bde9b0299100c12ddb0e6949c6eb4d85e5.tar.gz |
bpo-39218: Improve accuracy of variance calculation (GH-27960)
Diffstat (limited to 'Lib/test/test_statistics.py')
-rw-r--r-- | Lib/test/test_statistics.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index dc066fa921..64ebd0e8cb 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -1210,6 +1210,9 @@ class UnivariateTypeMixin: def __add__(self, other): return type(self)(super().__add__(other)) __radd__ = __add__ + def __mul__(self, other): + return type(self)(super().__mul__(other)) + __rmul__ = __mul__ return (float, Decimal, Fraction, MyFloat) def test_types_conserved(self): |