mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #25097: Merge with 3.4
This commit is contained in:
commit
af34b248d1
1 changed files with 1 additions and 1 deletions
|
@ -4134,7 +4134,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…
Add table
Add a link
Reference in a new issue