Remove newlines from left/right operands with '-vv' (#9743)

The left/right operands produced when `verbose > 1` should not contain newlines, because they are used to 
build the `summary` string. The `assertrepr_compare` function returns a list of lines, and the summary is one of those lines and should not contain newlines itself. 

Fix #9742

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
Samuel Colvin
2022-03-19 11:55:39 +00:00
committed by GitHub
parent eb22339dc3
commit b75cbee290
6 changed files with 58 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
Display assertion message without escaped newline characters with ``-vv``.