[PATCH] D43532: Fix TestSBData.py on Windows (which uses Python 3)

Adrian McCarthy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 14:50:00 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL325835: Fix TestSBData.py on Windows (authored by amccarth, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D43532?vs=135148&id=135523#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D43532

Files:
  lldb/trunk/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py


Index: lldb/trunk/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
===================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
+++ lldb/trunk/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
@@ -25,7 +25,7 @@
     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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43532.135523.patch
Type: text/x-patch
Size: 725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180222/be45b841/attachment.bin>


More information about the llvm-commits mailing list