[3.13] [tests]: Mark `test_statistics.test_kde_random with a requires_resource('cpu')` decorator (GH-118801) (#118818)

[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 027e6d88fb)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This commit is contained in:
Miss Islington (bot) 2024-05-09 10:43:03 +02:00 committed by GitHub
parent 7b9ca26812
commit 09896fca2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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