mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
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
This commit is contained in:
parent
56a3ce2715
commit
c7991cc287
1 changed files with 2 additions and 0 deletions
|
@ -2025,6 +2025,7 @@ class MappingTestCase(TestBase):
|
|||
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.
|
||||
|
@ -2038,6 +2039,7 @@ class MappingTestCase(TestBase):
|
|||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue