Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision f668d2b775da4bcd07e142c4bc5ebd88165fadf4 authored by Miss Islington (bot) on 17 September 2019, 11:35:56 UTC, committed by GitHub on 17 September 2019, 11:35:56 UTC
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'). (cherry picked from commit 5f5f11faf9de0d8dcbe1a8a4eb35d2a4232d6eaa) Co-authored-by: Abraham Toriz Cruz <awonderfulcode@gmail.com>
1 parent 728bea6
Tip revision: f668d2b775da4bcd07e142c4bc5ebd88165fadf4 authored by Miss Islington (bot) on 17 September 2019, 11:35:56 UTC
bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166)
bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166)
Tip revision: f668d2b
File | Mode | Size |
---|---|---|
launcher.icns | -rw-r--r-- | 258.3 KB |
launcher.ico | -rw-r--r-- | 85.2 KB |
launcher.svg | -rw-r--r-- | 4.4 KB |
py.icns | -rw-r--r-- | 191.4 KB |
py.ico | -rw-r--r-- | 74.0 KB |
py.png | -rw-r--r-- | 13.8 KB |
py.svg | -rw-r--r-- | 2.7 KB |
pyc.icns | -rw-r--r-- | 207.2 KB |
pyc.ico | -rw-r--r-- | 76.6 KB |
pyc.svg | -rw-r--r-- | 2.8 KB |
pyd.icns | -rw-r--r-- | 218.0 KB |
pyd.ico | -rw-r--r-- | 81.4 KB |
pyd.svg | -rw-r--r-- | 7.4 KB |
python.icns | -rw-r--r-- | 197.1 KB |
python.ico | -rw-r--r-- | 75.9 KB |
python.svg | -rw-r--r-- | 2.9 KB |
pythonw.icns | -rw-r--r-- | 188.7 KB |
pythonw.ico | -rw-r--r-- | 74.3 KB |
pythonw.svg | -rw-r--r-- | 2.9 KB |
pythonwx150.png | -rw-r--r-- | 8.0 KB |
pythonwx44.png | -rw-r--r-- | 2.2 KB |
pythonx150.png | -rw-r--r-- | 8.1 KB |
pythonx44.png | -rw-r--r-- | 2.1 KB |
pythonx50.png | -rw-r--r-- | 2.1 KB |
setup.icns | -rw-r--r-- | 215.5 KB |
setup.ico | -rw-r--r-- | 76.5 KB |
setup.svg | -rw-r--r-- | 3.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...