(self)
| 81 | pass |
| 82 | |
| 83 | def test_wmi_query_threads(self): |
| 84 | from concurrent.futures import ThreadPoolExecutor |
| 85 | query = "SELECT ProcessId FROM Win32_Process WHERE ProcessId < 1000" |
| 86 | with ThreadPoolExecutor(4) as pool: |
| 87 | task = [pool.submit(wmi_exec_query, query) for _ in range(32)] |
| 88 | for t in task: |
| 89 | self.assertRegex(t.result(), "ProcessId=") |
nothing calls this directly
no test coverage detected