Skip to content

Commit

Permalink
Remove redundant AsyncMagicMixin.__init__ method
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Dec 14, 2022
1 parent 7a30565 commit 597209d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2133,10 +2133,8 @@ def mock_add_spec(self, spec, spec_set=False):


class AsyncMagicMixin(MagicMixin):
def __init__(self, /, *args, **kw):
self._mock_set_magics() # make magic work for kwargs in init
_safe_super(AsyncMagicMixin, self).__init__(*args, **kw)
self._mock_set_magics() # fix magic broken by upper level init
pass


class MagicMock(MagicMixin, Mock):
"""
Expand Down

0 comments on commit 597209d

Please sign in to comment.