Update littlecheck to 3d8a08bd164a96f53aef2a00a818e8778808e95a

No longer escaping quotes by moving the output around.
This commit is contained in:
Fabian Boehm 2022-12-23 18:49:41 +01:00
parent c192bf94b2
commit 36e8117206

View file

@ -96,8 +96,6 @@ def esc(m):
map = {
"\n": "\\n",
"\\": "\\\\",
"'": "\\'",
'"': '\\"',
"\a": "\\a",
"\b": "\\b",
"\f": "\\f",
@ -304,11 +302,11 @@ class TestFailure(object):
)
if b:
bstr = (
"'{BLUE}"
+ b.line.escaped_text(for_formatting=True)
+ "{RESET}'"
+ " on line "
"on line "
+ str(b.line.number)
+ ": {BLUE}"
+ b.line.escaped_text(for_formatting=True)
+ "{RESET}"
)
lastcheckline = b.line.number