Skip to content

Commit a186b71

Browse files
committed
Debug test
1 parent 093d248 commit a186b71

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Lib/test/test_winapi.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ def test_report_event(self):
182182
_winapi.ReportEvent(handle, _winapi.EVENTLOG_SUCCESS, 1, 1002,
183183
test_strings, test_data)
184184

185-
# # Test with empty strings list
186-
# _winapi.ReportEvent(handle, _winapi.EVENTLOG_AUDIT_FAILURE, 2, 1003, [])
185+
# Test with empty strings list
186+
_winapi.ReportEvent(handle, _winapi.EVENTLOG_AUDIT_FAILURE, 2, 1003, [])
187187

188-
# with self.assertRaisesRegex(OSError, '[WinError 6]'):
189-
# _winapi.ReportEvent(_winapi.INVALID_HANDLE_VALUE,
190-
# _winapi.EVENTLOG_AUDIT_SUCCESS, 0, 1001, [],
191-
# test_data)
188+
with self.assertRaisesRegex(OSError, '[WinError 6]'):
189+
_winapi.ReportEvent(_winapi.INVALID_HANDLE_VALUE,
190+
_winapi.EVENTLOG_AUDIT_SUCCESS, 0, 1001, [],
191+
test_data)
192192

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

0 commit comments

Comments
 (0)