summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-10-06 20:22:41 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-10-06 20:22:41 (GMT)
commitaf34b248d1fb7b381294f2dfaa48f3615d9f625f (patch)
tree59dacb0de1acd273e54c9faae474b0a315043db9 /Lib/test
parenta3a19953e04cbee3da562164aec56ca25846d02d (diff)
parent22226c55955348644c8615738391570fdcb7d0be (diff)
downloadcpython-af34b248d1fb7b381294f2dfaa48f3615d9f625f.zip
cpython-af34b248d1fb7b381294f2dfaa48f3615d9f625f.tar.gz
cpython-af34b248d1fb7b381294f2dfaa48f3615d9f625f.tar.bz2
Issue #25097: Merge with 3.4
Diffstat (limited to 'Lib/test')
-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'})