mirror of
https://github.com/python/cpython.git
synced 2025-11-11 02:52:04 +00:00
In the format string for assert_called the evaluation order is incorrect and hence for mock's without name, 'None' is printed whereas it should be 'mock' like for other messages. The error message is ("Expected '%s' to have been called." % self._mock_name or 'mock').
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| support.py | ||
| testasync.py | ||
| testcallable.py | ||
| testhelpers.py | ||
| testmagicmethods.py | ||
| testmock.py | ||
| testpatch.py | ||
| testsealable.py | ||
| testsentinel.py | ||
| testwith.py | ||