Message339816
To add to this mock.Mock also copies dir(spec) but creating an instance from mock doesn't copy it where it's not a problem with create_autospec. Mock with spec does only attribute validation whereas create_autospec does signature validation. There is another open issue to make mock use spec passed as if it's autospecced issue30587 where this could be used as a data point to change API. I am adding mock devs for confirmation. |
|
| Date |
User |
Action |
Args |
| 2019-04-09 23:16:02 | xtreak | set | recipients:
+ xtreak, eric.smith, cjw296, michael.foord, mariocj89, John Parejko2 |
| 2019-04-09 23:16:02 | xtreak | set | messageid: <[email protected]> |
| 2019-04-09 23:16:02 | xtreak | link | issue36580 messages |
| 2019-04-09 23:16:02 | xtreak | create | |
|