mkstemp returns a file descriptor (#3809)

This commit is contained in:
Viet Hung Nguyen 2020-11-01 10:09:57 +07:00 committed by GitHub
parent de16539453
commit d37a8a0851

View file

@ -107,7 +107,7 @@ local development configuration.
return app.test_cli_runner()
:func:`tempfile.mkstemp` creates and opens a temporary file, returning
the file object and the path to it. The ``DATABASE`` path is
the file descriptor and the path to it. The ``DATABASE`` path is
overridden so it points to this temporary path instead of the instance
folder. After setting the path, the database tables are created and the
test data is inserted. After the test is over, the temporary file is