Skip to content

Commit 30242e0

Browse files
committed
Update test
1 parent d78e2db commit 30242e0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Lib/test/test_winapi.py

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

184184
# Test with empty strings list
185-
_winapi.ReportEvent(handle, 2, 0, 1003, [], b'')
185+
_winapi.ReportEvent(handle, 2, 0, 1003, [])
186186

187187
with self.assertRaisesRegex(OSError, '[WinError 6]'):
188188
_winapi.ReportEvent(_winapi.INVALID_HANDLE_VALUE, 1, 0, 1001, [], test_data)
189189

190190
with self.assertRaisesRegex(TypeError, 'All strings must be unicode'):
191-
_winapi.ReportEvent(handle, 1, 0, 1001, ["string", 123], test_data)
191+
_winapi.ReportEvent(handle, 1, 0, 1001, ["string", 123])

Modules/_winapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,7 @@ _winapi.ReportEvent
30443044
The event identifier.
30453045
strings: object(subclass_of='&PyList_Type')
30463046
A list of strings to be inserted into the event message.
3047-
raw_data: Py_buffer
3047+
raw_data: Py_buffer = None
30483048
The raw data for the event.
30493049
[clinic start generated code]*/
30503050

Modules/clinic/_winapi.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)