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

Method test_wmi_query_overflow

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

Source from the content-addressed store, hash-verified

61
62 @support.requires_resource('cpu')
63 def test_wmi_query_overflow(self):
64 # Ensure very big queries fail
65 # Test multiple times to ensure consistency
66 for _ in range(2):
67 with self.assertRaises(OSError):
68 wmi_exec_query("SELECT * FROM CIM_DataFile")
69
70 def test_wmi_query_multiple_rows(self):
71 # Multiple instances should have an extra null separator

Callers

nothing calls this directly

Calls 2

wmi_exec_queryFunction · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected