Skip to content

Commit

Permalink
Assign to _, which saves a reference to the object but doesn't violat…
Browse files Browse the repository at this point in the history
…e linter's sensibilities.
  • Loading branch information
jaraco committed Mar 24, 2019
1 parent 47bf730 commit a2f4bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyring/tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def test_traceback_not_referenced(self):
side effects. See #386 for more info.
"""
state = mock.MagicMock()
exc = errors.ExceptionInfo(None, None, DeletionDetector(state)) # noqa
_ = errors.ExceptionInfo(None, None, DeletionDetector(state))
assert state.deleted

0 comments on commit a2f4bd7

Please sign in to comment.