]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
test_printers_common.py: Remove invalid escape sequence
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Feb 2024 14:06:50 +0000 (06:06 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Feb 2024 14:25:29 +0000 (06:25 -0800)
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 <fweimer@redhat.com>
scripts/test_printers_common.py

index bf700966acad45219c535fa5a97bc0ccf5e79343..5c0d936fed66d16e4f17264a4e23aa06bd8c0186 100644 (file)
@@ -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: