OSDN Git Service

[lit] Prefer opening files with open (Python 2) rather than io.open which requires io.
authorAaron Smith <aaron.smith@microsoft.com>
Tue, 3 Apr 2018 00:22:12 +0000 (00:22 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Tue, 3 Apr 2018 00:22:12 +0000 (00:22 +0000)
commitad2e39fd2ef8a465f8c19e69e8498b6b14faa45a
tree313ca0a8e58deb74759b18280a2129a9f02f747c
parent2784c35c0ffbfc67e3e48d35ee8cfe9a1f06cfa2
[lit] Prefer opening files with open (Python 2) rather than io.open which requires io.

Only rely on Python 3 (io.open) when necessary. This puts TestRunnyer.py closer to how it behaved
before the changes introduced in D43165 and silences a few Windows build bot failures.

Thanks to Stella Stamenova for the patch!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329037 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/TestRunner.py