(self)
| 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 | |
| 7326 | class MiscTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected