]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool...
authoridanw206 <31290383+idanw206@users.noreply.github.com>
Sun, 6 Dec 2020 09:59:36 +0000 (11:59 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Dec 2020 09:59:36 +0000 (09:59 +0000)
commitc598a04dd29b89ad072245ddaf738badcfb41ac7
tree61ff268e651be370ce309083b586f725c142f150
parent804d6893b801e8f30318afc38c20d4d0e6161db3
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
Lib/unittest/mock.py
Lib/unittest/test/testmock/testmock.py
Misc/NEWS.d/next/Library/2020-12-02-07-37-59.bpo-42532.ObNep_.rst [new file with mode: 0644]