[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

Chris Withers report at bugs.python.org
Fri Nov 30 02:55:37 EST 2018


New submission from Chris Withers <chris at simplistix.co.uk>:

While working on https://bugs.python.org/issue35226, I stumbled upon this:

>>> from unittest.mock import call
>>> call.parent()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object is not callable

Guess we need to make .parent and friends more uniquely named ;-)

----------
assignee: cjw296
messages: 330757
nosy: cjw296, mariocj89, michael.foord
priority: normal
severity: normal
status: open
title: unittest.mock.call can't represent calls to a method called 'parent'

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


More information about the Python-bugs-list mailing list