From 36e8117206de6c10fa4474d409fd8af276edadb5 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Fri, 23 Dec 2022 18:49:41 +0100 Subject: [PATCH] Update littlecheck to 3d8a08bd164a96f53aef2a00a818e8778808e95a No longer escaping quotes by moving the output around. --- build_tools/littlecheck.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build_tools/littlecheck.py b/build_tools/littlecheck.py index ab6e37d4d..d07c134f9 100755 --- a/build_tools/littlecheck.py +++ b/build_tools/littlecheck.py @@ -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