diff options
author | Elena Oat <oat.elena@gmail.com> | 2019-12-08 20:14:38 (GMT) |
---|---|---|
committer | Chris Withers <chris@withers.org> | 2019-12-08 20:14:38 (GMT) |
commit | cd90a52983db34896a6335a572d55bdda274778f (patch) | |
tree | 601b917b63353a957a7763478d3a76480d9bb039 /Misc/NEWS.d/next/Tests | |
parent | 28c91631c24e53713ad0e8a2bbae716373f5e53d (diff) | |
download | cpython-cd90a52983db34896a6335a572d55bdda274778f.zip cpython-cd90a52983db34896a6335a572d55bdda274778f.tar.gz cpython-cd90a52983db34896a6335a572d55bdda274778f.tar.bz2 |
bpo-38669: patch.object now raises a helpful error (GH17034)
This means a clearer message is now shown when patch.object is called with two string arguments, rather than a class and a string argument.
Diffstat (limited to 'Misc/NEWS.d/next/Tests')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2019-11-04-02-54-16.bpo-38669.pazXZ8.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-11-04-02-54-16.bpo-38669.pazXZ8.rst b/Misc/NEWS.d/next/Tests/2019-11-04-02-54-16.bpo-38669.pazXZ8.rst new file mode 100644 index 0000000..5060ecf --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-11-04-02-54-16.bpo-38669.pazXZ8.rst @@ -0,0 +1 @@ +Raise :exc:`TypeError` when passing target as a string with :meth:`unittest.mock.patch.object`.
\ No newline at end of file |