Update docs and usage of TEMPFILE/TempFileMunge #4597
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tempfiles are now cleaned up via registering a cleanup with
atexit()
, instead of trying to squeeze removing the file into the command line. On Windows that caused the file to get deleted too early (did not work well with interactive mode), and on Linux it didn't remove the file at all.The Platform test expected to be able to read the tempfile name as the last argument of the "command", but this is no longer provided as the
rm filename
(or on Windowsdel filename
) is no longer added, so now it has to chop off the prefix from the command-file argument to get the filename.Unrelatedly, two syntax warnings that turn up in the test output where some TeX syntax was listed in a docstring in a test are fixed by making that a raw string - got tired of seeing these.
Fixes #4595
Contributor Checklist:
CHANGES.txt
(and read theREADME.rst
)