Skip to content
Prev Previous commit
Next Next commit
Debug test
  • Loading branch information
aisk committed Aug 19, 2025
commit a186b71827f905261214233f3e41f9a04f53dbe7
12 changes: 6 additions & 6 deletions Lib/test/test_winapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ def test_report_event(self):
_winapi.ReportEvent(handle, _winapi.EVENTLOG_SUCCESS, 1, 1002,
test_strings, test_data)

# # Test with empty strings list
# _winapi.ReportEvent(handle, _winapi.EVENTLOG_AUDIT_FAILURE, 2, 1003, [])
# Test with empty strings list
_winapi.ReportEvent(handle, _winapi.EVENTLOG_AUDIT_FAILURE, 2, 1003, [])

# with self.assertRaisesRegex(OSError, '[WinError 6]'):
# _winapi.ReportEvent(_winapi.INVALID_HANDLE_VALUE,
# _winapi.EVENTLOG_AUDIT_SUCCESS, 0, 1001, [],
# test_data)
with self.assertRaisesRegex(OSError, '[WinError 6]'):
_winapi.ReportEvent(_winapi.INVALID_HANDLE_VALUE,
_winapi.EVENTLOG_AUDIT_SUCCESS, 0, 1001, [],
test_data)

# with self.assertRaisesRegex(TypeError, 'All strings must be unicode'):
# _winapi.ReportEvent(handle, _winapi.EVENTLOG_ERROR_TYPE, 0, 1001,
Expand Down
Loading