]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] [tests]: Mark ``test_statistics.test_kde_random`` with a ``requires_resource...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 May 2024 08:43:03 +0000 (10:43 +0200)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 08:43:03 +0000 (08:43 +0000)
[tests]: Mark ``test_statistics.test_kde_random`` with a ``requires_resource('cpu')`` decorator (GH-118801)

Mark test_kde_random with a requires_resource('cpu') decorator
(cherry picked from commit 027e6d88fb898b7477b822b84f791ca60e64300b)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/test/test_statistics.py

index 40680759d456ac7da3d569fe84827b6ce719214e..6f68edd447c95346061db877c7d25e6d00ddb510 100644 (file)
@@ -2446,6 +2446,7 @@ class TestKDE(unittest.TestCase):
                 for x in xarr:
                     self.assertAlmostEqual(invcdf(cdf(x)), x, places=5)
 
+    @support.requires_resource('cpu')
     def test_kde_random(self):
         kde_random = statistics.kde_random
         StatisticsError = statistics.StatisticsError