8000 add `requires_working_threading` · python/cpython@2681cfa · GitHub
[go: up one dir, main page]

Skip to content

Commit 2681cfa

Browse files
committed
add requires_working_threading
1 parent 68528e6 commit 2681cfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_weakref.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,11 +2253,12 @@ def test_names(self):
22532253
self.assertEqual(obj.__name__, name)
22542254
self.assertEqual(obj.__qualname__, name)
22552255

2256+
@threading_helper.requires_working_threading()
22562257
def test_module_weakref(self):
22572258
mod = types.ModuleType("temp_mod")
22582259
common_ref = weakref.ref(mod)
22592260
threads = []
2260-
n_threads = 5
2261+
n_threads = 10
22612262
b = threading.Barrier(n_threads)
22622263

22632264
def weakref_mod_worker():

0 commit comments

Comments
 (0)
0