[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-08 Thread Ben Reilly
Ben Reilly added the comment: Yes, your description sounds right, and I had zero-ed in on the same park of the mock code when I was doing my investigation. I know that this is a peculiar situation, but one thing to note is that `inspect.signature` gets the signature right on these wrapped

[issue30587] Mock with spec object does not ensure method call signatures

2019-11-07 Thread Ben Reilly
Change by Ben Reilly : -- nosy: +breilly_box ___ Python tracker <https://bugs.python.org/issue30587> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-06 Thread Ben Reilly
Change by Ben Reilly : -- components: +Tests ___ Python tracker <https://bugs.python.org/issue38729> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-06 Thread Ben Reilly
New submission from Ben Reilly : mock.create_autospec is meant to create a mock that will ensure, among other things, that method calls on the mock correspond to real methods on the original object and that the arguments match the signature of the original method. However, if the original