[lldb] Update PythonDataObjectsTests for new exception formatting
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 15 Mar 2023 22:44:17 +0000 (15:44 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 15 Mar 2023 22:53:18 +0000 (15:53 -0700)
commit9dbce774eea515e400954f1d0ffbd858c839b546
treecc0493b6d1bbd5a777f0283e00bd0a8907d21769
parente35c71493b3a191b7a836d62feb0039b79b0b428
[lldb] Update PythonDataObjectsTests for new exception formatting

PythonDataObjectsTest.TestExceptions started failing because the output
of the python traceback printers is now consistent between python and
cpython [1]. Work around the issue by supporting both variants.

Thanks to Ismail for identifying the root cause.

[1] https://github.com/python/cpython/issues/85203
lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp