forked from OSchip/llvm-project
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:
parent
82eb70f0d9
commit
3db5d7e124
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue