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 |
---|---|---|
NEWS.d | ||
ACKS | -rw-r--r-- | 27.0 KB |
HISTORY | -rw-r--r-- | 1.3 MB |
Porting | -rw-r--r-- | 63 bytes |
README | -rw-r--r-- | 1.4 KB |
README.AIX | -rw-r--r-- | 4.7 KB |
README.coverity | -rw-r--r-- | 845 bytes |
README.valgrind | -rw-r--r-- | 4.8 KB |
SpecialBuilds.txt | -rw-r--r-- | 9.8 KB |
coverity_model.c | -rw-r--r-- | 4.0 KB |
gdbinit | -rw-r--r-- | 4.8 KB |
indent.pro | -rw-r--r-- | 557 bytes |
python-config.in | -rw-r--r-- | 2.1 KB |
python-config.sh.in | -rw-r--r-- | 2.9 KB |
python-embed.pc.in | -rw-r--r-- | 310 bytes |
python-wing3.wpr | -rw-r--r-- | 555 bytes |
python-wing4.wpr | -rw-r--r-- | 835 bytes |
python-wing5.wpr | -rw-r--r-- | 835 bytes |
python.man | -rw-r--r-- | 15.8 KB |
python.pc.in | -rw-r--r-- | 268 bytes |
svnmap.txt | -rw-r--r-- | 4.1 MB |
valgrind-python.supp | -rw-r--r-- | 8.2 KB |
vgrindefs | -rw-r--r-- | 500 bytes |
Computing file changes ...