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

Function wmi_exec_query

Lib/test/test_wmi.py:13–24  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

11
12
13def wmi_exec_query(query):
14 # gh-112278: WMI maybe slow response when first call.
15 for _ in support.sleeping_retry(support.LONG_TIMEOUT):
16 try:
17 return _wmi.exec_query(query)
18 except BrokenPipeError:
19 pass
20 # retry on pipe error
21 except WindowsError as exc:
22 if exc.winerror != 258:
23 raise
24 # retry on timeout
25
26
27class WmiTests(unittest.TestCase):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…