Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80d70de

Browse filesBrowse files
[3.14] gh-134578: Mark more slow tests (GH-134579) (GH-134590)
(cherry picked from commit 77eade3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 81f0993 commit 80d70de
Copy full SHA for 80d70de

File tree

Expand file treeCollapse file tree

5 files changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+6
-0
lines changed

‎Lib/test/test_ast/test_ast.py

Copy file name to clipboardExpand all lines: Lib/test/test_ast/test_ast.py
+1Lines 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

Copy file name to clipboardExpand all lines: Lib/test/test_capi/test_object.py
+1Lines 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

Copy file name to clipboardExpand all lines: Lib/test/test_collections.py
+2Lines 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

Copy file name to clipboardExpand all lines: Lib/test/test_json/test_recursion.py
+1Lines 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

Copy file name to clipboardExpand all lines: Lib/test/test_statistics.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.