summaryrefslogtreecommitdiff
path: root/Lib/test/test_statistics.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2021-08-30 20:57:30 -0500
committerGitHub <noreply@github.com>2021-08-30 20:57:30 -0500
commit793f55bde9b0299100c12ddb0e6949c6eb4d85e5 (patch)
tree85e9b2b887734dca9b4c8681ee7953924506acf8 /Lib/test/test_statistics.py
parent044e8d866fdde3804bdb2282c7d23a8074de8f6f (diff)
downloadcpython-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.py3
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):