Skip to content

Commit 77eade3

Browse files
pythongh-134578: Mark more slow tests (pythonGH-134579)
1 parent fc0c9c2 commit 77eade3

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

Lib/test/test_ast/test_ast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3292,6 +3292,7 @@ def check_output(self, source, expect, *flags):
32923292
expect = self.text_normalize(expect)
32933293
self.assertEqual(res, expect)
32943294

3295+
@support.requires_resource('cpu')
32953296
def test_invocation(self):
32963297
# test various combinations of parameters
32973298
base_flags = (

Lib/test/test_capi/test_object.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def test_decref_freed_object(self):
221221
"""
222222
self.check_negative_refcount(code)
223223

224+
@support.requires_resource('cpu')
224225
def test_decref_delayed(self):
225226
# gh-130519: Test that _PyObject_XDecRefDelayed() and QSBR code path
226227
# handles destructors that are possibly re-entrant or trigger a GC.

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
@@ -86,6 +86,7 @@ def test_highly_nested_objects_decoding(self):
8686

8787
@support.skip_wasi_stack_overflow()
8888
@support.skip_emscripten_stack_overflow()
89+
@support.requires_resource('cpu')
8990
def test_highly_nested_objects_encoding(self):
9091
# See #12051
9192
l, d = [], {}

Lib/test/test_statistics.py

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

23472347
class TestKDE(unittest.TestCase):
23482348

2349+
@support.requires_resource('cpu')
23492350
def test_kde(self):
23502351
kde = statistics.kde
23512352
StatisticsError = statistics.StatisticsError

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy