https://github.com/python/cpython/commit/027e6d88fb898b7477b822b84f791ca60e64300b
commit: 027e6d88fb898b7477b822b84f791ca60e64300b
branch: main
author: Kirill Podoprigora <[email protected]>
committer: sobolevn <[email protected]>
date: 2024-05-09T11:16:37+03:00
summary:

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

Mark test_kde_random with a requires_resource('cpu') decorator

files:
M Lib/test/test_statistics.py

diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py
index 40680759d456ac..6f68edd447c953 100644
--- a/Lib/test/test_statistics.py
+++ b/Lib/test/test_statistics.py
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to