Skip to content

Commit 093d248

Browse files
committed
Debug the test
1 parent bfa41e5 commit 093d248

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Lib/test/test_winapi.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ 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

193-
with self.assertRaisesRegex(TypeError, 'All strings must be unicode'):
194-
_winapi.ReportEvent(handle, _winapi.EVENTLOG_ERROR_TYPE, 0, 1001,
195-
["string", 123])
193+
# with self.assertRaisesRegex(TypeError, 'All strings must be unicode'):
194+
# _winapi.ReportEvent(handle, _winapi.EVENTLOG_ERROR_TYPE, 0, 1001,
195+
# ["string", 123])

0 commit comments

Comments
 (0)