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

Method run

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

Source from the content-addressed store, hash-verified

301
302 class WriterThread(threading.Thread):
303 def run(self):
304 with CreateKey(HKEY_CURRENT_USER, test_key_name) as key:
305 values_iter = itertools.cycle(values)
306 while not done:
307 val = next(values_iter)
308 SetValueEx(key, 'test_value', 0, REG_BINARY, val)
309 ready.set()
310
311 thread = WriterThread()
312 thread.start()

Callers

nothing calls this directly

Calls 5

CreateKeyFunction · 0.85
nextFunction · 0.85
SetValueExFunction · 0.85
cycleMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected