Skip to content

Commit 0308612

Browse files
[3.13] gh-134578: Mark more slow tests (GH-134579) (GH-134592)
(cherry picked from commit 77eade3)
1 parent 1dbb644 commit 0308612

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Lib/test/test_collections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ def test_odd_sizes(self):
542542
self.assertEqual(Dot(1)._replace(d=999), (999,))
543543
self.assertEqual(Dot(1)._fields, ('d',))
544544

545+
@support.requires_resource('cpu')
546+
def test_large_size(self):
545547
n = support.exceeds_recursion_limit()
546548
names = list(set(''.join([choice(string.ascii_letters)
547549
for j in range(10)]) for i in range(n)))

Lib/test/test_json/test_recursion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def test_highly_nested_objects_decoding(self):
7979
with support.infinite_recursion():
8080
self.loads('[' * 100000 + '1' + ']' * 100000)
8181

82+
@support.requires_resource('cpu')
8283
def test_highly_nested_objects_encoding(self):
8384
# See #12051
8485
l, d = [], {}

Lib/test/test_statistics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,6 +2355,7 @@ def test_mixed_int_and_float(self):
23552355

23562356
class TestKDE(unittest.TestCase):
23572357

2358+
@support.requires_resource('cpu')
23582359
def test_kde(self):
23592360
kde = statistics.kde
23602361
StatisticsError = statistics.StatisticsError

0 commit comments

Comments
 (0)