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

Method run

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

Source from the content-addressed store, hash-verified

268
269 class VeryActiveThread(threading.Thread):
270 def run(self):
271 with CreateKey(HKEY_CURRENT_USER, test_key_name) as key:
272 use_short = True
273 long_string = 'x'*2000
274 while not done:
275 s = 'x' if use_short else long_string
276 use_short = not use_short
277 SetValue(key, 'changing_value', REG_SZ, s)
278
279 thread = VeryActiveThread()
280 thread.start()

Callers

nothing calls this directly

Calls 2

CreateKeyFunction · 0.85
SetValueFunction · 0.85

Tested by

no test coverage detected