summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 041d38f..e75c393 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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'})