We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 093d248 commit a186b71Copy full SHA for a186b71
1 file changed
Lib/test/test_winapi.py
@@ -182,13 +182,13 @@ def test_report_event(self):
182
_winapi.ReportEvent(handle, _winapi.EVENTLOG_SUCCESS, 1, 1002,
183
test_strings, test_data)
184
185
- # # Test with empty strings list
186
- # _winapi.ReportEvent(handle, _winapi.EVENTLOG_AUDIT_FAILURE, 2, 1003, [])
+ # Test with empty strings list
+ _winapi.ReportEvent(handle, _winapi.EVENTLOG_AUDIT_FAILURE, 2, 1003, [])
187
188
- # with self.assertRaisesRegex(OSError, '[WinError 6]'):
189
- # _winapi.ReportEvent(_winapi.INVALID_HANDLE_VALUE,
190
- # _winapi.EVENTLOG_AUDIT_SUCCESS, 0, 1001, [],
191
- # test_data)
+ with self.assertRaisesRegex(OSError, '[WinError 6]'):
+ _winapi.ReportEvent(_winapi.INVALID_HANDLE_VALUE,
+ _winapi.EVENTLOG_AUDIT_SUCCESS, 0, 1001, [],
+ test_data)
192
193
# with self.assertRaisesRegex(TypeError, 'All strings must be unicode'):
194
# _winapi.ReportEvent(handle, _winapi.EVENTLOG_ERROR_TYPE, 0, 1001,
0 commit comments