diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-22 08:04:07 (GMT) |
---|---|---|
committer | Chris Withers <chris@withers.org> | 2019-07-22 08:04:07 (GMT) |
commit | e9b187a2bfbb0586fc5d554ce745b7fe04e0b9a8 (patch) | |
tree | a2d1092d90ab8ca06ab2cb0ad56ba32841a9a2a4 /Lib/test/test_dataclasses.py | |
parent | 849a37a2b640af14cfb004cdbced01983b0d9d2b (diff) | |
download | cpython-e9b187a2bfbb0586fc5d554ce745b7fe04e0b9a8.zip cpython-e9b187a2bfbb0586fc5d554ce745b7fe04e0b9a8.tar.gz cpython-e9b187a2bfbb0586fc5d554ce745b7fe04e0b9a8.tar.bz2 |
bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14903)
* 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 7397cda99795a4a8d96193d710105e77a07b7411)
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Diffstat (limited to 'Lib/test/test_dataclasses.py')
0 files changed, 0 insertions, 0 deletions