Skip to content

Commit

Permalink
[3.13] [tests]: Mark test_statistics.test_kde_random with a ``req…
Browse files Browse the repository at this point in the history
…uires_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 027e6d8)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
  • Loading branch information
miss-islington and Eclips4 authored May 9, 2024
1 parent 7b9ca26 commit 09896fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2446,6 +2446,7 @@ def test_kde_kernel_invcdfs(self):
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
Expand Down

0 comments on commit 09896fc

Please sign in to comment.