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

Mark test_kde_random with a requires_resource('cpu') decorator
This commit is contained in:
Kirill Podoprigora 2024-05-09 11:16:37 +03:00 committed by GitHub
parent 2f4db5a04d
commit 027e6d88fb
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