From d37a8a08516ae181d9f26417a4a082788b570f6a Mon Sep 17 00:00:00 2001 From: Viet Hung Nguyen Date: Sun, 1 Nov 2020 10:09:57 +0700 Subject: [PATCH] mkstemp returns a file descriptor (#3809) --- docs/tutorial/tests.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/tests.rst b/docs/tutorial/tests.rst index 730a5054..079aeaa1 100644 --- a/docs/tutorial/tests.rst +++ b/docs/tutorial/tests.rst @@ -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