Fix TestSBData.py on Windows

Ensure that the test data is an array of bytes rather than a string that gets
encoded differently between Python 2 and Python 3.

Differential Revision: https://reviews.llvm.org/D43532

llvm-svn: 325835
This commit is contained in:
Adrian McCarthy 2018-02-22 22:47:14 +00:00
parent 82eb70f0d9
commit 3db5d7e124
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class SBDataAPICase(TestBase):
def test_byte_order_and_address_byte_size(self):
"""Test the SBData::SetData() to ensure the byte order and address
byte size are obeyed"""
addr_data = '\x11\x22\x33\x44\x55\x66\x77\x88'
addr_data = b'\x11\x22\x33\x44\x55\x66\x77\x88'
error = lldb.SBError()
data = lldb.SBData()
data.SetData(error, addr_data, lldb.eByteOrderBig, 4)