This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zach.ware
Recipients paul.moore, steve.dower, tim.golden, vinay.sajip, zach.ware
Date 2015-09-14.04:21:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442204467.58.0.479620846783.issue25097@psf.upfronthosting.co.za>
In-reply-to
Content
With an installed Python with pywin32 installed, running the test as a non-privileged user:

======================================================================
ERROR: test_basic (test.test_logging.NTEventLogHandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python34\lib\test\test_logging.py", line 4108, in test_basic
    h = logging.handlers.NTEventLogHandler('test_logging')
  File "C:\Python34\lib\logging\handlers.py", line 1011, in __init__
    self._welu.AddSourceToRegistry(appname, dllname, logtype)
  File "C:\Python34\lib\site-packages\win32\lib\win32evtlogutil.py", line 35, in AddSourceToRegistry
    "SYSTEM\\CurrentControlSet\\Services\\EventLog\\%s\\%s" % (eventLogType, appName))
pywintypes.error: (5, 'RegCreateKey', 'Access is denied.')


The test should skip in the case of 'Access is denied'.

Assumed to affect 2.7 and up, but haven't checked anything but 3.4.
History
Date User Action Args
2015-09-14 04:21:07zach.waresetrecipients: + zach.ware, paul.moore, vinay.sajip, tim.golden, steve.dower
2015-09-14 04:21:07zach.waresetmessageid: <1442204467.58.0.479620846783.issue25097@psf.upfronthosting.co.za>
2015-09-14 04:21:07zach.warelinkissue25097 messages
2015-09-14 04:21:07zach.warecreate