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 9d4406a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 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

0 comments on commit 9d4406a

Please sign in to comment.