Visitar URL original
[3.13] [tests]: Mark ``test_statistics.test_kde_random`` with a ``requires_resource('cpu')`` decorator (GH-118801) by miss-islington · Pull Request #118818 · python/cpython · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[tests]: Mark test_statistics.test_kde_random with a ``requires_r…
…esource('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
Eclips4 authored and miss-islington committed May 9, 2024
commit 97f80892705ab1af71a7a8c5a7cd860736bb8133
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