Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit77eade3

Browse files
gh-134578: Mark more slow tests (GH-134579)
1 parentfc0c9c2 commit77eade3

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
deftest_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
deftest_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+
deftest_large_size(self):
545547
n=support.exceeds_recursion_limit()
546548
names=list(set(''.join([choice(string.ascii_letters)
547549
forjinrange(10)])foriinrange(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
deftest_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
classTestKDE(unittest.TestCase):
23482348

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp