From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id E7A3D3858401; Mon, 12 Feb 2024 14:25:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7A3D3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707747944; bh=Lb/0oYNkS62QstJhkItgUow+FmCPeUt7PZXgMhdsJ2U=; h=From:To:Subject:Date:From; b=xvQE/BAkDGfHVpq0JHlVw8LWfRkXp+7IPJL0cO+LTIS9mez44/b/AyzG+l8O9KvOU KgEwp2vZZsxtGtoc2gIDhYZbvgERSAD9RNdA+6nTMqxZGJ9VoshL3exlb3a9e5fR5T P6J2cC87j/d1smf+1QmRfj85ofC7sOpqPtroaOoU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: H.J. Lu To: glibc-cvs@sourceware.org Subject: [glibc] test_printers_common.py: Remove invalid escape sequence X-Act-Checkin: glibc X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/master X-Git-Oldrev: 15de3d17e1d9da5d38efb0a87a82efbc5bda732d X-Git-Newrev: c676808a34e27fc3f7b1115c5257b382c6f00cb4 Message-Id: <20240212142544.E7A3D3858401@sourceware.org> Date: Mon, 12 Feb 2024 14:25:44 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c676808a34e27fc3f7b1115c5257b382c6f00cb4 commit c676808a34e27fc3f7b1115c5257b382c6f00cb4 Author: H.J. Lu 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 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: