From 29ac9c191966515192372472c7a1f22304352159 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Fri, 19 Sep 2025 16:02:13 -0500 Subject: [PATCH] system-test: Fix crash when a comparison with a non-string value fails `orig` isn't necessarily a string, so the string concatenation here can raise a TypeError. --- system/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/lib.py b/system/lib.py index f7761997..77670c86 100644 --- a/system/lib.py +++ b/system/lib.py @@ -517,7 +517,7 @@ class BaseTest(object): if gold != output: diff = "".join(difflib.unified_diff( [l + "\n" for l in gold.split("\n")], [l + "\n" for l in output.split("\n")])) - raise Exception("content doesn't match:\n" + diff + "\n\nOutput:\n" + orig + "\n") + raise Exception(f"content doesn't match:\n{diff}\n\nOutput:\n{orig}\n") check = check_output