MCPcopy Create free account
hub / github.com/hynek/structlog / TestThread

Class TestThread

tests/test_threadlocal.py:193–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 """
192
193 class TestThread(threading.Thread):
194 def __init__(self, d):
195 self._d = d
196 threading.Thread.__init__(self)
197
198 def run(self):
199 assert "tl" not in self._d._dict
200
201 self._d["tl"] = 23
202
203 with pytest.deprecated_call():
204 d = wrap_dict(dict)()

Callers 1

test_is_thread_localMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_is_thread_localMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…