mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
772369731c
Summary: Unfortunately the Python standard library's `tempfile.NamedTemporaryFile` class does not work very well on Windows: even though the temporary files are named, they cannot actually be opened by other processes. Attempting to open the file fails with a permission denied error. This code extends our existing temporary directory management logic to also add APIs for creating individual temporary files. This has the advantage of better grouping all temporary files for a given test in the same directory. I also updated the code to include the test function name in the temporary directory prefix. This should make it a little easier to identify which test is at fault when there are temporary files left behind after a test. (This can happen if the test gets killed or if it leaves behind files or mount points that cannot be removed normally). Reviewed By: wez Differential Revision: D20885160 fbshipit-source-id: 7267b2352e51214354eab7ead839bf166d690974 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
environment_variable.py | ||
temporary_directory.py |