]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[tests]: Mark ``test_statistics.test_kde_random`` with a ``requires_resource('cpu...
authorKirill Podoprigora <kirill.bast9@mail.ru>
Thu, 9 May 2024 08:16:37 +0000 (11:16 +0300)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 08:16:37 +0000 (11:16 +0300)
Mark test_kde_random with a requires_resource('cpu') decorator

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