Skip to content

Commit

Permalink
gh-121220: Mark test_threaded_weak_value_dict_copy() as CPU-heavy (#1…
Browse files Browse the repository at this point in the history
…21221)

Mark test_threaded_weak_value_dict_copy() and
test_threaded_weak_key_dict_copy() of test_weakref as
CPU-heavy tests
  • Loading branch information
Eclips4 committed Jul 1, 2024
1 parent 56a3ce2 commit c7991cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_weakref.py
Original file line number Diff line number Diff line change
Expand Up @@ -2025,6 +2025,7 @@ def pop_and_collect(lst):
raise exc[0]

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

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

0 comments on commit c7991cc

Please sign in to comment.