diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 480c85bed9b31e..1fa90277e08ec3 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -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: