mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
bpo-36871: Avoid duplicated 'Actual:' in assertion message (GH-16361)
Fixes an issue caught after merge of PR 16005. Tightened test assertions to check the entire assertion message.
This commit is contained in:
parent
b5a7a4f0c2
commit
2180f6b058
3 changed files with 32 additions and 18 deletions
|
@ -939,8 +939,8 @@ class NonCallableMock(Base):
|
|||
for e in expected])
|
||||
raise AssertionError(
|
||||
f'{problem}\n'
|
||||
f'Expected: {_CallList(calls)}\n'
|
||||
f'Actual: {self._calls_repr(prefix="Actual")}'
|
||||
f'Expected: {_CallList(calls)}'
|
||||
f'{self._calls_repr(prefix="Actual").rstrip(".")}'
|
||||
) from cause
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue