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 . |
||
---|---|---|
.. | ||
testmock | ||
__init__.py | ||
__main__.py | ||
_test_warnings.py | ||
dummy.py | ||
support.py | ||
test_assertions.py | ||
test_break.py | ||
test_case.py | ||
test_discovery.py | ||
test_functiontestcase.py | ||
test_loader.py | ||
test_program.py | ||
test_result.py | ||
test_runner.py | ||
test_setups.py | ||
test_skipping.py | ||
test_suite.py |