From 14e84e28dcab9a5d3f63e94c37f70cd763f62789 Mon Sep 17 00:00:00 2001 From: bneradt Date: Thu, 14 May 2026 11:05:47 -0500 Subject: [PATCH] Quiet regex_map_yaml escape warnings Newer Python versions warn when the regex_map_yaml test compiles a non-raw f-string containing regex escapes. The same string also turns \b into a backspace before writing remap.yaml, which makes the regex in the generated config less faithful to the source. This makes the YAML block a raw f-string so regex backslashes remain literal while the port interpolation still works. --- tests/gold_tests/remap_yaml/regex_map_yaml.test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gold_tests/remap_yaml/regex_map_yaml.test.py b/tests/gold_tests/remap_yaml/regex_map_yaml.test.py index 1565337b1d3..abecde2ee3d 100644 --- a/tests/gold_tests/remap_yaml/regex_map_yaml.test.py +++ b/tests/gold_tests/remap_yaml/regex_map_yaml.test.py @@ -41,7 +41,7 @@ }) ts.Disk.remap_yaml.AddLines( - f''' + rf''' remap: - type: regex_map from: