azure-sdk-for-python
azure-sdk-for-python copied to clipboard
Track 2: _open should not require a close if it failed.
Currently, there are failure modes within _open() (called within enter) such that if it fails, the receiver still requires close() to be called on it lest it emit errors on program exit.
_open() should be idempotent and should leave the handler in a semantically consistent state.