Grit: Fix permission errors in misc_unittest.py on Windows
Temporary file names created with tempfile.NamedTemporaryFile cannot be used to open the file a second time on Windows, see: https://docs.python.org/2/library/tempfile.html Set the temp files to not be automatically deleted on close, close them after creation so they can be re-opened, and delete the files at the end of the tests. Bug: 961359 Change-Id: I88a86332f4454c1e98f7e5b0f7753771e7d4b4d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1612043Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#660021}
Showing
Please register or sign in to comment