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 = { map = {
"\n": "\\n", "\n": "\\n",
"\\": "\\\\", "\\": "\\\\",
"'": "\\'",
'"': '\\"',
"\a": "\\a", "\a": "\\a",
"\b": "\\b", "\b": "\\b",
"\f": "\\f", "\f": "\\f",
@ -304,11 +302,11 @@ class TestFailure(object):
) )
if b: if b:
bstr = ( bstr = (
"'{BLUE}" "on line "
+ b.line.escaped_text(for_formatting=True)
+ "{RESET}'"
+ " on line "
+ str(b.line.number) + str(b.line.number)
+ ": {BLUE}"
+ b.line.escaped_text(for_formatting=True)
+ "{RESET}"
) )
lastcheckline = b.line.number lastcheckline = b.line.number