mirror of https://github.com/python/cpython
Issue #25097: fix Windows error number access
This commit is contained in:
parent
a6d04cf4e6
commit
22226c5595
|
@ -4104,7 +4104,7 @@ class NTEventLogHandlerTest(BaseTest):
|
|||
try:
|
||||
h = logging.handlers.NTEventLogHandler('test_logging')
|
||||
except pywintypes.error as e:
|
||||
if e[0] == 5: # access denied
|
||||
if e.winerror == 5: # access denied
|
||||
raise unittest.SkipTest('Insufficient privileges to run test')
|
||||
|
||||
r = logging.makeLogRecord({'msg': 'Test Log Message'})
|
||||
|
|
Loading…
Reference in New Issue