[Python-checkins] cpython (3.4): Issue #25097: fix Windows error number access
zach.ware
python-checkins at python.org
Tue Oct 6 16:23:27 EDT 2015
https://hg.python.org/cpython/rev/4e7697ccceeb
changeset: 98565:4e7697ccceeb
branch: 3.4
parent: 98559:91f36d2b097a
user: Zachary Ware <zachary.ware at gmail.com>
date: Tue Oct 06 15:22:13 2015 -0500
summary:
Issue #25097: fix Windows error number access
files:
Lib/test/test_logging.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -4104,7 +4104,7 @@
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'})
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list