From: Serhiy Storchaka Date: Fri, 23 May 2025 17:31:05 +0000 (+0300) Subject: [3.13] gh-134578: Mark more slow tests (GH-134579) (GH-134592) X-Git-Tag: v3.13.4~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03086125088140ceaf56779e0aedf2b08f93a1e9;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-134578: Mark more slow tests (GH-134579) (GH-134592) (cherry picked from commit 77eade39f972a4f3d8e9fec00288779f35ceee21) --- diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 955323cae88f..cafc44007d11 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -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))) diff --git a/Lib/test/test_json/test_recursion.py b/Lib/test/test_json/test_recursion.py index 164ff2013eb5..0ebc83034a1f 100644 --- a/Lib/test/test_json/test_recursion.py +++ b/Lib/test/test_json/test_recursion.py @@ -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 = [], {} diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index 7b6037529a34..6fed4fc7570f 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -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