Skip to content

Commit

Permalink
Remove unused variable in MagicMixin._mock_set_magics (#124092)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Sep 14, 2024
1 parent b02301f commit 1de4613
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2166,8 +2166,6 @@ def _mock_set_magics(self):

if getattr(self, "_mock_methods", None) is not None:
these_magics = orig_magics.intersection(self._mock_methods)

remove_magics = set()
remove_magics = orig_magics - these_magics

for entry in remove_magics:
Expand Down

0 comments on commit 1de4613

Please sign in to comment.