]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-121220: Mark test_threaded_weak_value_dict_copy() as CPU-heavy (#121221)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Mon, 1 Jul 2024 13:33:02 +0000 (16:33 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 13:33:02 +0000 (15:33 +0200)
Mark test_threaded_weak_value_dict_copy() and
test_threaded_weak_key_dict_copy() of test_weakref as
CPU-heavy tests

Lib/test/test_weakref.py

index ef2fe92cc219b639073878cccdf7756d93a78b9a..2b9b2a04db8298b6f9c0833f33dcf98225491043 100644 (file)
@@ -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.