From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 24EC83858C52; Wed, 28 Feb 2024 09:18:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24EC83858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709111916; bh=rQbFjWJXt1jKqGqUquAV3v264gNgq7r4llGJ0vMVTvw=; h=From:To:Subject:Date:From; b=I9v7GCfgdm2FgDP5gbCEgpcvCIXEBQYN0kNDqrX5wD2Ih7nU3txnT5sIAHVxeap3P idkpDx5+4iZa16EEls9DBB1SujQhz9+dg8vXj+vPRRIQrXnxWx9/PXRYOBkw4stg/M faINGb66BvP/7Y8gBPgikFS1FX8tMyasEc04DpSo= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug python/31425] New: [gdb/python, 3.12] FAIL: gdb.python/py-block.exp: check nonexistent variable Date: Wed, 28 Feb 2024 09:18:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31425 Bug ID: 31425 Summary: [gdb/python, 3.12] FAIL: gdb.python/py-block.exp: check nonexistent variable Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: python Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- On aarch64-linux, with python 3.12. Before commit a207f6b3a38 ("Rewrite "python" command exception handling"), = we had: ... (gdb) python print (block['nonexistent'])^M Traceback (most recent call last):^M File "", line 1, in ^M KeyError: 'nonexistent'^M Error while executing Python code.^M (gdb) PASS: gdb.python/py-block.exp: check nonexistent variable ... but now we have: ... (gdb) python print (block['nonexistent'])^M Python Exception : 'nonexistent'^M Error occurred in Python: 'nonexistent'^M (gdb) FAIL: gdb.python/py-block.exp: check nonexistent variable ... The change in the test-case is: ... -gdb_test "python print (block\['nonexistent'\])" ".*KeyError: 'nonexistent= '.*" \ +gdb_test "python print (block\['nonexistent'\])" ".*KeyError.*: nonexisten= t.*" \ "check nonexistent variable" ... which drops the single quotes around the nonexistent string. --=20 You are receiving this mail because: You are on the CC list for the bug.=