MCPcopy Index your code
hub / github.com/python/cpython / f

Method f

Lib/test/test_threading_local.py:67–70  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

65 local = Local()
66
67 def f(i):
68 local.x = i
69 # Simply check that the variable is correctly set
70 self.assertEqual(local.x, i)
71
72 with threading_helper.start_threads(threading.Thread(target=f, args=(i,))
73 for i in range(10)):

Callers

nothing calls this directly

Calls 5

LocalClass · 0.70
assertEqualMethod · 0.45
appendMethod · 0.45
setMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected