diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2023-09-02 04:45:34 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-02 04:45:34 (GMT) |
| commit | f3ba0a74cd50274acdcd592d4ce8395b92492b7c (patch) | |
| tree | 761e44f1d648492afdb821e7a309558b31578bc9 /Lib/test/test_statistics.py | |
| parent | aa52888e6a0269f0c31a24bd0d1adb3238147261 (diff) | |
| download | cpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.zip cpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.tar.gz cpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.tar.bz2 | |
gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421)
Only mark tests which spend significant system or user time,
by itself or in subprocesses.
Diffstat (limited to 'Lib/test/test_statistics.py')
| -rw-r--r-- | Lib/test/test_statistics.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index aa2cf2b..23a3973 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -2145,6 +2145,7 @@ class TestSqrtHelpers(unittest.TestCase): self.assertTrue(m * (r - 1)**2 < n < m * (r + 1)**2) @requires_IEEE_754 + @support.requires_resource('cpu') def test_float_sqrt_of_frac(self): def is_root_correctly_rounded(x: Fraction, root: float) -> bool: @@ -2849,6 +2850,7 @@ class TestNormalDist: self.assertTrue(math.isnan(X.cdf(float('NaN')))) @support.skip_if_pgo_task + @support.requires_resource('cpu') def test_inv_cdf(self): NormalDist = self.module.NormalDist |
