public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] test_printers_common.py: Remove invalid escape sequence
@ 2024-02-12 14:25 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-02-12 14:25 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c676808a34e27fc3f7b1115c5257b382c6f00cb4
commit c676808a34e27fc3f7b1115c5257b382c6f00cb4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Feb 12 06:06:50 2024 -0800
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>
Diff:
---
scripts/test_printers_common.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-12 14:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-12 14:25 [glibc] test_printers_common.py: Remove invalid escape sequence H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).