]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11048)
authorXtreak <tirkarthi@users.noreply.github.com>
Wed, 12 Dec 2018 07:54:54 +0000 (13:24 +0530)
committerChris Withers <chris@withers.org>
Wed, 12 Dec 2018 07:54:54 +0000 (07:54 +0000)
commitf7fa62ef4422c9deee050a794fd8504640d9f8f4
tree1a55b52b7e7d8122b3ee33f4d18c2adf018c63ea
parent5344501ad166c1380be452644a863a4679c4291b
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11048)

* 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
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]