8000 remove stale comment and use requires_working_threading · python/cpython@9547a5f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9547a5f

Browse files
committed
remove stale comment and use requires_working_threading
1 parent f3f3445 commit 9547a5f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Lib/test/test_free_threading/test_dict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
from threading import Thread
99
from unittest import TestCase
1010

11-
from test.support import is_wasi
11+
from test.support import threading_helper
1212

1313

14-
@unittest.skipIf(is_wasi, "WASI has no threads.")
14+
@threading_helper.requires_working_threading()
1515
class TestDict(TestCase):
1616
def test_racing_creation_shared_keys(self):
1717
"""Verify that creating dictionaries is thread safe when we

Objects/dictobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,6 @@ new_dict(PyInterpreterState *interp,
924924
return (PyObject *)mp;
925925
}
926926

927-
/* Consumes a reference to the keys object */
928927
static PyObject *
929928
new_dict_with_shared_keys(PyInterpreterState *interp, PyDictKeysObject *keys)
930929
{

0 commit comments

Comments
 (0)
0