diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-06-21 23:55:42 +0200 |
---|---|---|
committer | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-06-22 22:25:51 +0200 |
commit | 96ba371ad40c067fdf5a95747d1c5f3984b96a16 (patch) | |
tree | 4e92b07e623aa8edab168d74cab9f63380b3887a /gdb | |
parent | a61cb9dbc6a8be0922ec5992cf125a5cd389e016 (diff) | |
download | gdb-96ba371ad40c067fdf5a95747d1c5f3984b96a16.zip gdb-96ba371ad40c067fdf5a95747d1c5f3984b96a16.tar.gz gdb-96ba371ad40c067fdf5a95747d1c5f3984b96a16.tar.bz2 |
gdb/testsuite: fix gdb.python/py-unwind.exp with python >= 3.11
Python 3.11 changed the AttributeError message - see commit
0cb765b2cec9 ("bpo-46730: Add more info to @property AttributeError
messages (GH-31311)"). Add the new message to the expectations.
Approved-By: Tom Tromey <tom@tromey.com>
Link: https://sourceware.org/pipermail/gdb-patches/2023-June/200433.html
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.python/py-unwind.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-unwind.exp b/gdb/testsuite/gdb.python/py-unwind.exp index e7c4c23..807f63d 100644 --- a/gdb/testsuite/gdb.python/py-unwind.exp +++ b/gdb/testsuite/gdb.python/py-unwind.exp @@ -105,9 +105,11 @@ check_info_unwinder "info unwinder after failed disable" on # unwider. Doing this is bad as the new name might clash with an # already registered name, which violates the promises made during # 'register_unwinder'. +set pattern_1 "can't set attribute(?: 'name')?" +set pattern_2 "property 'name' of 'TestUnwinder' object has no setter" gdb_test "python global_test_unwinder.name = \"foo\"" \ [multi_line \ - "AttributeError: can't set attribute(?: 'name')?" \ + "AttributeError: (?:${pattern_1}|${pattern_2})" \ "Error while executing Python code\\."] check_info_unwinder "info unwinder after failed name change" on |