summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2023-01-08 19:38:24 (GMT)
committerGitHub <noreply@github.com>2023-01-08 19:38:24 (GMT)
commitb139bcd8922b47bf77c75d5f6704cc9147852546 (patch)
tree4bcae8719aa3922a68eca29fc9c52845a50290f5 /Lib/test/test_math.py
parent11f99323c2ae0ec428c370a335695e3d8d4afc1d (diff)
downloadcpython-b139bcd8922b47bf77c75d5f6704cc9147852546.zip
cpython-b139bcd8922b47bf77c75d5f6704cc9147852546.tar.gz
cpython-b139bcd8922b47bf77c75d5f6704cc9147852546.tar.bz2
GH-100485: Tweaks to sumprod() (GH-100857)
Diffstat (limited to 'Lib/test/test_math.py')
-rw-r--r--Lib/test/test_math.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 65fe169..b8ac8f3 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -1294,6 +1294,7 @@ class MathTests(unittest.TestCase):
self.assertEqual(sumprod([0.1] * 20, [True, False] * 10), 1.0)
self.assertEqual(sumprod([1.0, 10E100, 1.0, -10E100], [1.0]*4), 2.0)
+ @support.requires_resource('cpu')
def test_sumprod_stress(self):
sumprod = math.sumprod
product = itertools.product