This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 04ee3232e4 Quiet regex_map_yaml escape warnings (#13163)
04ee3232e4 is described below

commit 04ee3232e4ab85bde5dc83a9f187ef8985934988
Author: Brian Neradt <[email protected]>
AuthorDate: Thu May 14 14:05:28 2026 -0500

    Quiet regex_map_yaml escape warnings (#13163)
    
    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.
    
    Co-authored-by: bneradt <[email protected]>
---
 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 1565337b1d..abecde2ee3 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.records_config.update(
     })
 
 ts.Disk.remap_yaml.AddLines(
-    f'''
+    rf'''
 remap:
   - type: regex_map
     from:

Reply via email to