summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-10-06 20:23:16 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-10-06 20:23:16 (GMT)
commitc456861f997c5c8ae3281cd245af541fbef20071 (patch)
treee5290d23f7d7e1bc663deb980c1ab6e59945195a /Lib/test/test_logging.py
parent68713e41a5df7228e6971e894d8fc2fda720b5ce (diff)
parentaf34b248d1fb7b381294f2dfaa48f3615d9f625f (diff)
downloadcpython-c456861f997c5c8ae3281cd245af541fbef20071.zip
cpython-c456861f997c5c8ae3281cd245af541fbef20071.tar.gz
cpython-c456861f997c5c8ae3281cd245af541fbef20071.tar.bz2
Issue #25097: Merge with 3.5
Diffstat (limited to 'Lib/test/test_logging.py')
-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'})