MCPcopy Index your code
hub / github.com/RustPython/RustPython / f

Method f

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

allFunction · 0.85
hasattrFunction · 0.85
LocalClass · 0.70
assertEqualMethod · 0.45
appendMethod · 0.45
setMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected