Issue #25097: Re-raise any other pywin32 error

This commit is contained in:
Zachary Ware 2015-10-06 15:28:43 -05:00
parent 22226c5595
commit 106ddf07b3
1 changed files with 1 additions and 0 deletions

View File

@ -4106,6 +4106,7 @@ class NTEventLogHandlerTest(BaseTest):
except pywintypes.error as e: except pywintypes.error as e:
if e.winerror == 5: # access denied if e.winerror == 5: # access denied
raise unittest.SkipTest('Insufficient privileges to run test') raise unittest.SkipTest('Insufficient privileges to run test')
raise
r = logging.makeLogRecord({'msg': 'Test Log Message'}) r = logging.makeLogRecord({'msg': 'Test Log Message'})
h.handle(r) h.handle(r)