Skip to content

Commit

Permalink
Update Notes section of tmpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mesejo committed Oct 20, 2021
1 parent 0907ebe commit dcc79a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dask/utils.py
Expand Up @@ -188,9 +188,7 @@ def tmpfile(extension="", dir=None):
Notes
-----
This function is meant to be used for testing purposes. Should be preferred over
pytest fixture tmp_path when multiple files are needed inside a test invocation.
As opposed to the built-in NamedTemporaryFile can be used in Windows NT or later
This context manager is particularly useful on Windows for opening temporary files multiple times.
"""
extension = "." + extension.lstrip(".")
handle, filename = tempfile.mkstemp(extension, dir=dir)
Expand Down Expand Up @@ -226,7 +224,7 @@ def tmpdir(dir=None):
Notes
-----
This context manager is particularly useful on Windows for opening temporary files multiple times.
This context manager is particularly useful on Windows for opening temporary directories multiple times.
"""
dirname = tempfile.mkdtemp(dir=dir)

Expand Down

0 comments on commit dcc79a0

Please sign in to comment.