From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 9 May 2024 08:43:03 +0000 (+0200) Subject: [3.13] [tests]: Mark ``test_statistics.test_kde_random`` with a ``requires_resource... X-Git-Tag: v3.13.0b2~256 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09896fca2f821fdac8c2ba28ae5a4596c179ead3;p=thirdparty%2FPython%2Fcpython.git [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 027e6d88fb898b7477b822b84f791ca60e64300b) Co-authored-by: Kirill Podoprigora --- diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index 40680759d456..6f68edd447c9 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -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