diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-01-23 19:34:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 19:34:43 (GMT) |
commit | e3ade66ec575e0cb4882cfdff155ef962e67c837 (patch) | |
tree | 47b718d1839f201353eb4b3714f82a193cdc087f /Misc | |
parent | a7a4ca4f06c8c31d7f403113702ad2e80bfc326b (diff) | |
download | cpython-e3ade66ec575e0cb4882cfdff155ef962e67c837.zip cpython-e3ade66ec575e0cb4882cfdff155ef962e67c837.tar.gz cpython-e3ade66ec575e0cb4882cfdff155ef962e67c837.tar.bz2 |
bpo-41403: Improve error message for invalid mock target (GH-30833) (GH-30834)
(cherry picked from commit f7955a82e36d4c32ebdd7b7707cdf0e6ffa7a418)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-01-23-18-04-45.bpo-41403.SgoHqV.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-01-23-18-04-45.bpo-41403.SgoHqV.rst b/Misc/NEWS.d/next/Library/2022-01-23-18-04-45.bpo-41403.SgoHqV.rst new file mode 100644 index 0000000..ede159b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-01-23-18-04-45.bpo-41403.SgoHqV.rst @@ -0,0 +1,3 @@ +Make :meth:`mock.patch` raise a :exc:`TypeError` with a relevant error +message on invalid arg. Previously it allowed a cryptic +:exc:`AttributeError` to escape. |