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