Skip to content

Commit 7aa607a

Browse files
Update Lib/test/test_winapi.py
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 7503e18 commit 7aa607a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_winapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def test_event_source_registration(self):
166166

167167
with self.assertRaises(OSError) as cm:
168168
_winapi.RegisterEventSource(None, "")
169-
self.assertEqual(cm.exception.winerror, 87)
169+
self.assertEqual(cm.exception.errno, errno.EINVAL)
170170

171171
with self.assertRaises(OSError) as cm:
172172
_winapi.DeregisterEventSource(_winapi.INVALID_HANDLE_VALUE)

0 commit comments

Comments
 (0)