Review Request #12567 — Created Aug. 24, 2022 and submitted
content=parameter to specify content
going into the temp file without having to do a follow-up write.
TestCase.precreate_tempfiles()completely ignored this,
pre-creating the files but never writing the content to them when
handling the spy for
This has been updated to perform the write when called, if content is
It also updates
make_tempfile()for type safety and to require keyword
arguments (deprecating positional arguments), to help ensure signatures
Unit tests pass on Python 3.7-3.11.