]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11125)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Dec 2018 08:58:36 +0000 (00:58 -0800)
committerChris Withers <chris@withers.org>
Wed, 12 Dec 2018 08:58:36 +0000 (08:58 +0000)
commit6a12931c9cb5d472fe6370dbcd2bde72f34dddb4
tree3f81195fa63145699b75e259543d9505a5211827
parent10cc6260f970c17ec4bf155b3c51a3ec0e604863
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11125)

* Fix partial and partial method signatures in mock

* Add more calls

* Add NEWS entry

* Use assertEquals and fix markup in NEWS

* Refactor branching and add markup reference for functools

* Revert partial object related changes and fix pr comments
(cherry picked from commit f7fa62ef4422c9deee050a794fd8504640d9f8f4)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
Lib/unittest/mock.py
Lib/unittest/test/testmock/testhelpers.py
Misc/NEWS.d/next/Library/2018-12-09-17-04-15.bpo-17185.SfSCJF.rst [new file with mode: 0644]