[Python] Fix TestDataFormatterSmartArray to work across python versions.
authorDavide Italiano <davide@freebsd.org>
Wed, 13 Mar 2019 20:04:34 +0000 (20:04 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 13 Mar 2019 20:04:34 +0000 (20:04 +0000)
commit9e75a08409108f1a20b1be42c0ee726a912bf7a0
tree774b1c51e78327862bdb57394b1433b746557e90
parent60a4163f6d442e2c312bb88f5c219f0ac58daf0f
[Python] Fix TestDataFormatterSmartArray to work across python versions.

Python 3 default encoding is utf-8, so taking random bytes and
interpreting them as a string might result in invalid unicode sequences.
As the only thing we care about here is that the formatter shows the
elements of the underyling array, relax the string matching (this is
good enough as all the elements are distinct so they resolve to different
strings).

llvm-svn: 356096
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py