mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
![]() Mock objects which are not unsafe will now raise an AttributeError when accessing an attribute that matches the name of an assertion but without the prefix `assert_`, e.g. accessing `called_once` instead of `assert_called_once`. This is in addition to this already happening for accessing attributes with prefixes assert, assret, asert, aseert, and assrt. |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
_log.py | ||
async_case.py | ||
case.py | ||
loader.py | ||
main.py | ||
mock.py | ||
result.py | ||
runner.py | ||
signals.py | ||
suite.py | ||
util.py |