-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
In
python-humanfriendly/humanfriendly/testing.py
Line 542 in 6758ac6
return super(MockedProgram, self).__exit__(*args, **kw) |
return
statement in a finally
block, which would swallow any in-flight exception.
This means that if the try block raises AssertionError
, this will not be raised (in contradiction to the function's docstring).
See also https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.
Metadata
Metadata
Assignees
Labels
No labels