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

Method run

Lib/test/test_winreg.py:330–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

328
329 class WriterThread(threading.Thread):
330 def run(self):
331 with CreateKey(HKEY_CURRENT_USER, test_key_name) as key:
332 values_iter = itertools.cycle(values)
333 while not done:
334 val = next(values_iter)
335 SetValueEx(key, 'test_value', 0, REG_BINARY, val)
336 ready.set()
337
338 thread = WriterThread()
339 thread.start()

Callers

nothing calls this directly

Calls 2

cycleMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected