There was an error while loading. Please reload this page.
1 parent f3f3445 commit 9547a5fCopy full SHA for 9547a5f
2 files changed
Lib/test/test_free_threading/test_dict.py
@@ -8,10 +8,10 @@
8
from threading import Thread
9
from unittest import TestCase
10
11
-from test.support import is_wasi
+from test.support import threading_helper
12
13
14
-@unittest.skipIf(is_wasi, "WASI has no threads.")
+@threading_helper.requires_working_threading()
15
class TestDict(TestCase):
16
def test_racing_creation_shared_keys(self):
17
"""Verify that creating dictionaries is thread safe when we
Objects/dictobject.c
@@ -924,7 +924,6 @@ new_dict(PyInterpreterState *interp,
924
return (PyObject *)mp;
925
}
926
927
-/* Consumes a reference to the keys object */
928
static PyObject *
929
new_dict_with_shared_keys(PyInterpreterState *interp, PyDictKeysObject *keys)
930
{
0 commit comments