[issue39082] AsyncMock is unable to correctly patch static or class methods

2019-12-27 Thread Aniket Panse
Change by Aniket Panse : -- keywords: +patch pull_requests: +17162 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17717 ___ Python tracker <https://bugs.python.org/issu

[issue39082] AsyncMock is unable to correctly patch static or class methods

2019-12-17 Thread Aniket Panse
New submission from Aniket Panse : Currently, patch is unable to correctly patch coroutinefunctions decorated with `@staticmethod` or `@classmethod`. Example: ``` [*] aniketpanse [~/git/cpython] -> ./pyt