diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-29 06:58:27 (GMT) |
---|---|---|
committer | Chris Withers <chris@withers.org> | 2019-08-29 06:58:27 (GMT) |
commit | 38d311d79e57479f7a684c2cd298293033dc4990 (patch) | |
tree | e942b90e6c736218104e2a06e47b6528f7c09637 /Python/pythonrun.c | |
parent | 612d3935ec0b2fbe88b3fae8167f0c503c61a9ca (diff) | |
download | cpython-38d311d79e57479f7a684c2cd298293033dc4990.zip cpython-38d311d79e57479f7a684c2cd298293033dc4990.tar.gz cpython-38d311d79e57479f7a684c2cd298293033dc4990.tar.bz2 |
bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15578)
* Fix call_matcher for mock when using methods
* Add NEWS entry
* Use None check and convert doctest to unittest
* Use better name for mock in tests. Handle _SpecState when the attribute was not accessed and add tests.
* Use reset_mock instead of reinitialization. Change inner class constructor signature for check
* Reword comment regarding call object lookup logic
(cherry picked from commit c96127821ebda50760e788b1213975a0d5bea37f)
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions