[issue37047] Refactor AsyncMock setup logic in create_autospec

2019-05-27 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37047] Refactor AsyncMock setup logic in create_autospec

2019-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset ff6b2e66b19a26b4c2ab57e62e1ab9f3d94dd76a by Yury Selivanov (Xtreak) in branch 'master': bpo-37047: Refactor AsyncMock setup logic for autospeccing (GH-13574) https://github.com/python/cpython/commit/ff6b2e66b19a26b4c2ab57e62e1ab9f3d94dd76a ---

[issue37047] Refactor AsyncMock setup logic in create_autospec

2019-05-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13482 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13574 ___ Python tracker ___

[issue37047] Refactor AsyncMock setup logic in create_autospec

2019-05-25 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : * In create_autospec there is some logic to detect if the function is an async function this could be refactored out as a private function. * create_autospec has initialization code for async mock. For synchronous functions this is done with _set