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

Method test_wmi_query_not_select

Lib/test/test_wmi.py:57–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 self.test_wmi_query_error()
56
57 def test_wmi_query_not_select(self):
58 # Queries other than SELECT are blocked to avoid potential exploits
59 with self.assertRaises(ValueError):
60 wmi_exec_query("not select, just in case someone tries something")
61
62 @support.requires_resource('cpu')
63 def test_wmi_query_overflow(self):

Callers

nothing calls this directly

Calls 2

wmi_exec_queryFunction · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected