From: H.J. Lu Date: Mon, 12 Feb 2024 14:06:50 +0000 (-0800) Subject: test_printers_common.py: Remove invalid escape sequence X-Git-Tag: glibc-2.40~413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c676808a34e27fc3f7b1115c5257b382c6f00cb4;p=thirdparty%2Fglibc.git test_printers_common.py: Remove invalid escape sequence Change "\(" and "\)" to "\\(" and "\\)" in test_printers_common.py. This fixes the test warning: .../scripts/test_printers_common.py:101: SyntaxWarning: invalid escape sequence '\(' Reviewed-by: Florian Weimer --- diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py index bf700966ac..5c0d936fed 100644 --- a/scripts/test_printers_common.py +++ b/scripts/test_printers_common.py @@ -98,7 +98,7 @@ try: # If everything's ok, spawn the gdb process we'll use for testing. gdb = pexpect.spawn(gdb_invocation, echo=False, timeout=timeout, encoding=encoding) - gdb_prompt = u'\(gdb\)' + gdb_prompt = u'\\(gdb\\)' gdb.expect(gdb_prompt) except pexpect.ExceptionPexpect as exception: