diff options
author | idanw206 <31290383+idanw206@users.noreply.github.com> | 2020-12-06 09:59:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 09:59:36 (GMT) |
commit | c598a04dd29b89ad072245ddaf738badcfb41ac7 (patch) | |
tree | 61ff268e651be370ce309083b586f725c142f150 /Misc | |
parent | 804d6893b801e8f30318afc38c20d4d0e6161db3 (diff) | |
download | cpython-c598a04dd29b89ad072245ddaf738badcfb41ac7.zip cpython-c598a04dd29b89ad072245ddaf738badcfb41ac7.tar.gz cpython-c598a04dd29b89ad072245ddaf738badcfb41ac7.tar.bz2 |
bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH23613)
Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-12-02-07-37-59.bpo-42532.ObNep_.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-12-02-07-37-59.bpo-42532.ObNep_.rst b/Misc/NEWS.d/next/Library/2020-12-02-07-37-59.bpo-42532.ObNep_.rst new file mode 100644 index 0000000..7465cb8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-12-02-07-37-59.bpo-42532.ObNep_.rst @@ -0,0 +1 @@ +Remove unexpected call of ``__bool__`` when passing a ``spec_arg`` argument to a Mock. |