@@ -0,0 +1,637 @@
+from unittest import mock%0A%0Afrom keyring import errors%0A%0A%0Aclass DeletionDetector:%0A    def __init__(self, state):%0A        self.state = state%0A        self.state.deleted = False%0A%0A    def __del__(self):%0A        self.state.deleted = True%0A%0A%0Aclass TestExceptionInfo:%0A    def test_traceback_not_referenced(self):%0A        %22%22%22%0A        Ensure that an ExceptionInfo doesn't keep a reference%0A        to the traceback, as doing so can create unintended%0A        side effects. See #386 for more info.%0A        %22%22%22%0A        state = mock.MagicMock()%0A        exc = errors.ExceptionInfo(None, None, DeletionDetector(state))  # noqa%0A        assert state.deleted%0A

Add test capturing expectation around the ExceptionInfo object. Ref #386.