[lldb] Make TestIOHandlerResizeNoEditline pass with Python 2
authorRaphael Isemann <teemperor@gmail.com>
Tue, 7 Jul 2020 11:30:52 +0000 (13:30 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 7 Jul 2020 11:54:14 +0000 (13:54 +0200)
commitde0175d04bc3679c7bd8dc64520e790bf38f30b0
tree8c5d9df28aed4a47a2d6714062cb0583f260ca98
parenta256193afa4869ae749eaeec7548244772843da3
[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.
lldb/test/API/iohandler/resize/TestIOHandlerResizeNoEditline.py
lldb/test/API/iohandler/resize/input_file [new file with mode: 0644]