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 <fweimer@redhat.com>
This commit is contained in:
H.J. Lu 2024-02-12 06:06:50 -08:00
parent 15de3d17e1
commit c676808a34

View 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: