]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-134578: Mark more slow tests (GH-134579) (GH-134592)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 23 May 2025 17:31:05 +0000 (20:31 +0300)
committerGitHub <noreply@github.com>
Fri, 23 May 2025 17:31:05 +0000 (17:31 +0000)
(cherry picked from commit 77eade39f972a4f3d8e9fec00288779f35ceee21)

Lib/test/test_collections.py
Lib/test/test_json/test_recursion.py
Lib/test/test_statistics.py

index 955323cae88f922a49985af6b0b611a43c8b5d0a..cafc44007d1185fdf8749d731dd367560f35a70e 100644 (file)
@@ -542,6 +542,8 @@ class TestNamedTuple(unittest.TestCase):
         self.assertEqual(Dot(1)._replace(d=999), (999,))
         self.assertEqual(Dot(1)._fields, ('d',))
 
+    @support.requires_resource('cpu')
+    def test_large_size(self):
         n = support.exceeds_recursion_limit()
         names = list(set(''.join([choice(string.ascii_letters)
                                   for j in range(10)]) for i in range(n)))
index 164ff2013eb552c4acadc4f86761ee0c6d577e84..0ebc83034a1f7d13825f684fdd4519dc37656ca8 100644 (file)
@@ -79,6 +79,7 @@ class TestRecursion:
             with support.infinite_recursion():
                 self.loads('[' * 100000 + '1' + ']' * 100000)
 
+    @support.requires_resource('cpu')
     def test_highly_nested_objects_encoding(self):
         # See #12051
         l, d = [], {}
index 7b6037529a34d43464e10dd4a5f96acaa94b00d7..6fed4fc7570fd75d1b802b1f659ab336f2801e78 100644 (file)
@@ -2355,6 +2355,7 @@ class TestGeometricMean(unittest.TestCase):
 
 class TestKDE(unittest.TestCase):
 
+    @support.requires_resource('cpu')
     def test_kde(self):
         kde = statistics.kde
         StatisticsError = statistics.StatisticsError