[Lldb-commits] [PATCH] D68737: SBFile::GetFile: convert SBFile back into python native files.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 07:39:43 PDT 2019


labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py:781
+        with open(self.out_filename, 'r') as f:
+            # python2 returns None from write, python3 returns 7
+            lines = [x for x in f.read().strip().split() if x != "7"]
----------------
lawrence_danna wrote:
> labath wrote:
> > I find this comment confusing. Does that refer to the write call above? If so, I don't see how that is relevant here..
> When we check the output on the next line we have to strip out the 7, which is the number of bytes written.
Ah, right. Thanks for clearing that up.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68737/new/

https://reviews.llvm.org/D68737





More information about the lldb-commits mailing list