From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 98DB53858CDB for ; Mon, 12 Feb 2024 13:47:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 98DB53858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 98DB53858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707745626; cv=none; b=Nhq+vNKNTG5OC7wz2Ii8LuKC553jf/06x6Pa/xhzjh4qoYuN5sJHlyPIK5bhUvimBeHdFYwG9xXsFs61bwM8ZQtl9KhI/5+w0/rY9Mhf+Vk8iK5EBdqOEqRmIJnRsjtEJPYINk/IWKpwXU8zi1NFRi2MKGhtguG2p+dMHVWXgAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707745626; c=relaxed/simple; bh=oqtEbd9ytx2J3XF4X+FOIotFMOZqyWHhUct0yaEKO3k=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=hw+pK4FyqyMsvvOo4BvZY7THqy44EYfUR+FBvTGv9EpF8xNxIu2ucJak8sOiqcXrRSJwD9h+DZMz6O4Z8XD/KCoCeMuAEJsrvFHsYb4DhrwcLAcLd5omxUUm7jIhp9u50r1ETyFhiTUXxpVLp9NQCaIhm+FFcZBH1jmV9B4b02w= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707745624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zvTR0a8StYhnlwXn5n2uFkdn1t9BnL+nCHwgBoz3luA=; b=VddfOGszVFpHdh4FG/cTqYZR/zCrYHj+WOWjjDCYe8uMBQl8KL7ND6bw4MglpcUMd3R/jA fate4exWK2ia5xflBBHb8UCHhtNUgXLCoAccTKCk3frK74A8lWBD0hSENwd+CvHFYEUe/0 j6aOgfjKVwG5vxffFLO1UH6qPrJJo0c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-588-4MuvRArDN_-dgghlCNKoEw-1; Mon, 12 Feb 2024 08:47:03 -0500 X-MC-Unique: 4MuvRArDN_-dgghlCNKoEw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B2B9784AE44; Mon, 12 Feb 2024 13:47:02 +0000 (UTC) Received: from oldenburg3.str.redhat.com (unknown [10.39.192.236]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E4670112D169; Mon, 12 Feb 2024 13:47:01 +0000 (UTC) From: Florian Weimer To: "H.J. Lu" Cc: libc-alpha@sourceware.org Subject: Re: [PATCH] test_printers_common.py: Remove invalid escape sequence References: <20240212133532.159366-1-hjl.tools@gmail.com> Date: Mon, 12 Feb 2024 14:47:00 +0100 In-Reply-To: <20240212133532.159366-1-hjl.tools@gmail.com> (H. J. Lu's message of "Mon, 12 Feb 2024 05:35:32 -0800") Message-ID: <87le7pbxrf.fsf@oldenburg3.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * H. J. Lu: > Remove '\(' and '\)' from test_printers_common.py which aren't valid > Python escape sequences. This fixes the test warning: > > .../scripts/test_printers_common.py:101: SyntaxWarning: invalid escape sequence '\(' > --- > 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..7085a2fbc2 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: This changes the string, you should use: + gdb_prompt = u'\\(gdb\\)' Thanks, Florian