Skip to content

Commit c7991cc

Browse files
authored
gh-121220: Mark test_threaded_weak_value_dict_copy() as CPU-heavy (#121221)
Mark test_threaded_weak_value_dict_copy() and test_threaded_weak_key_dict_copy() of test_weakref as CPU-heavy tests
1 parent 56a3ce2 commit c7991cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_weakref.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,7 @@ def pop_and_collect(lst):
20252025
raise exc[0]
20262026

20272027
@threading_helper.requires_working_threading()
2028+
@support.requires_resource('cpu')
20282029
def test_threaded_weak_key_dict_copy(self):
20292030
# Issue #35615: Weakref keys or values getting GC'ed during dict
20302031
# copying should not result in a crash.
@@ -2038,6 +2039,7 @@ def test_threaded_weak_key_dict_deepcopy(self):
20382039
self.check_threaded_weak_dict_copy(weakref.WeakKeyDictionary, True)
20392040

20402041
@threading_helper.requires_working_threading()
2042+
@support.requires_resource('cpu')
20412043
def test_threaded_weak_value_dict_copy(self):
20422044
# Issue #35615: Weakref keys or values getting GC'ed during dict
20432045
# copying should not result in a crash.

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