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 7aa607a commit d4a8a33Copy full SHA for d4a8a33
Lib/test/test_winapi.py
@@ -1,5 +1,6 @@
1
# Test the Windows-only _winapi module
2
3
+import errno
4
import os
5
import pathlib
6
import re
@@ -170,7 +171,7 @@ def test_event_source_registration(self):
170
171
172
with self.assertRaises(OSError) as cm:
173
_winapi.DeregisterEventSource(_winapi.INVALID_HANDLE_VALUE)
- self.assertEqual(cm.exception.winerror, 6)
174
+ self.assertEqual(cm.exception.errno, errno.EBADF)
175
176
def test_report_event(self):
177
source_name = "PythonTestEventSource"
0 commit comments