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

Method test_without_pywin32

Lib/test/test_logging.py:7315–7323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7313
7314 @unittest.skipUnless(sys.platform == "win32", "Windows required for this test")
7315 def test_without_pywin32(self):
7316 h = logging.handlers.NTEventLogHandler('python_test')
7317 self.addCleanup(h.close)
7318
7319 # Verify that the handler uses _winapi module
7320 self.assertIsNotNone(h._winapi, "_winapi module should be available")
7321
7322 r = logging.makeLogRecord({'msg': 'Hello!'})
7323 h.emit(r)
7324
7325
7326class MiscTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

emitMethod · 0.95
addCleanupMethod · 0.80
assertIsNotNoneMethod · 0.80

Tested by

no test coverage detected