Visitar URL original
bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function by idanw206 · Pull Request #23613 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed whitespaces in testmock.py
  • Loading branch information
idanw206 committed Dec 6, 2020
commit b853185fba67b23c471952ff74d31b274da731c0
2 changes: 1 addition & 1 deletion Lib/unittest/test/testmock/testmock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,7 @@ def trace(frame, event, arg): # pragma: no cover
for mock in mocks:
obj = mock(spec=Something)
self.assertIsInstance(obj, Something)

def test_bool_not_called_when_passing_spec_arg(self):
class Something:
def __init__(self):
Expand Down