mirror of https://github.com/python/cpython
830b43d03c
In Python having a trace function in effect while mock is imported causes isinstance to be wrong for MagicMocks. This is due to the usage of super() in some class methods, as this sets the __class__ attribute. To avoid this, as a workaround, alias the usage of super . |
||
---|---|---|
.. | ||
test | ||
__init__.py | ||
__main__.py | ||
case.py | ||
loader.py | ||
main.py | ||
mock.py | ||
result.py | ||
runner.py | ||
signals.py | ||
suite.py | ||
util.py |