diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2023-01-08 19:38:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 19:38:24 (GMT) |
commit | b139bcd8922b47bf77c75d5f6704cc9147852546 (patch) | |
tree | 4bcae8719aa3922a68eca29fc9c52845a50290f5 /Lib/test/test_math.py | |
parent | 11f99323c2ae0ec428c370a335695e3d8d4afc1d (diff) | |
download | cpython-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.py | 1 |
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 |