This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][lit] Fix running testsuite with python2.7 after 9020d28688492c437abb648b6ab69baeba523219
ClosedPublic

Authored by arichardson on Jul 26 2020, 3:31 AM.

Details

Summary

Python 2.7 fails with TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
if you pass None as the prefix argument to NamedTemporaryFile.

Diff Detail

Event Timeline

arichardson created this revision.Jul 26 2020, 3:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2020, 3:31 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
bjope accepted this revision.Jul 26 2020, 4:01 AM

I have no clue if this has any negative impact from the https://reviews.llvm.org/D84040 point-of-view, etc. Maybe @ldionne can take a quick look at this as well (pre/post commit).

But I did confirm that this would make our downstream build bots happy again, when reporting the problem in D84040.
So LGTM, as it at least make things build again, with lit tests passing.

ldionne accepted this revision.Jul 26 2020, 7:05 PM
This revision is now accepted and ready to land.Jul 26 2020, 7:05 PM
This revision was automatically updated to reflect the committed changes.