cpython/Lib/unittest
Miss Islington (bot) 22fd679dc3 bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14902)
* Clear name and parent of mock in autospecced objects used with attach_mock

* Add NEWS entry

* Fix reversed order of comparison

* Test child and standalone function calls

* Use a helper function extracting mock to avoid code duplication and refactor tests.
(cherry picked from commit 7397cda997)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
2019-07-22 08:59:00 +01:00
..
test bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14902) 2019-07-22 08:59:00 +01:00
__init__.py bpo-32972: Async test case (GH-13386) 2019-05-29 02:33:59 -07:00
__main__.py
async_case.py bpo-32972: Async test case (GH-13386) 2019-05-29 02:33:59 -07:00
case.py bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700) 2019-06-01 11:00:15 +03:00
loader.py
main.py
mock.py bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14902) 2019-07-22 08:59:00 +01:00
result.py
runner.py
signals.py
suite.py
util.py