[issue21478] mock calls don't propagate to parent (autospec)

Karthikeyan Singaravelan report at bugs.python.org
Tue Oct 15 12:00:48 EDT 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Thanks for the confirmation. You can download the patch for the PR by appending .diff/.patch to the PR URL. The patch can be applied to your source locally with "git apply patch_file" to run my example. Reverting patch would cause AttributeError

Diff URL : https://github.com/python/cpython/pull/16784.diff

The PR also includes regression test so reverting the patch to mock.py and running below command would cause error in test.

./python -m test test_unittest

Checking out a different branch and doing below command should do a clean rebuild with a different version of python. Also for reference : https://devguide.python.org/

git clean -xdf && ./configure && make -j4

Hope it helps

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21478>
_______________________________________


More information about the Python-bugs-list mailing list