[all-commits] [llvm/llvm-project] de0175: [lldb] Make TestIOHandlerResizeNoEditline pass wit...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Tue Jul 7 04:54:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: de0175d04bc3679c7bd8dc64520e790bf38f30b0
      https://github.com/llvm/llvm-project/commit/de0175d04bc3679c7bd8dc64520e790bf38f30b0
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M lldb/test/API/iohandler/resize/TestIOHandlerResizeNoEditline.py
    A lldb/test/API/iohandler/resize/input_file

  Log Message:
  -----------
  [lldb] Make TestIOHandlerResizeNoEditline pass with Python 2

io.BytesIO seems to produce a stream in Python 2 which isn't recognized
as a file object in the SWIG API, so this test fails for Python 2 (and I assume
also an old SWIG version needs to be involved).

Instead just open an empty input file which is a file object in all Python
versions to make this test pass everywhere.




More information about the All-commits mailing list