From 7c20611cdded4176cb4d17e3292137b96feec356 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