I think this was in better shape than initially expected, because _maybe_decrypt_data() did its work in a finally: block. Anyway, added two test cases. One that covers the event of a pwrite() raising an exception, and the other of an exception occurring in the main write block before _maybe_decrypt_data() is executed. The latter test was failing, and changes to the exception handler have been made to pass.
Closes #144
I think this was in better shape than initially expected, because
_maybe_decrypt_data()
did its work in afinally:
block. Anyway, added two test cases. One that covers the event of a pwrite() raising an exception, and the other of an exception occurring in the main write block before_maybe_decrypt_data()
is executed. The latter test was failing, and changes to the exception handler have been made to pass.