Merge 66a18f7199
into 53bf188999
This commit is contained in:
commit
87c1df3de1
|
@ -451,7 +451,7 @@ def _format_assertmsg(obj: object) -> str:
|
|||
# However in either case we want to preserve the newline.
|
||||
replaces = [("\n", "\n~"), ("%", "%%")]
|
||||
if not isinstance(obj, str):
|
||||
obj = saferepr(obj)
|
||||
obj = _saferepr(obj)
|
||||
replaces.append(("\\n", "\n~"))
|
||||
|
||||
for r1, r2 in replaces:
|
||||
|
|
Loading…
Reference in New Issue