| 267 | done = False |
| 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() |
no outgoing calls