Skip to content

Commit aadad8b

Browse files
author
Release Manager
committed
gh-36375: src/sage/interfaces/gap_workspace.py: replace tmp_dir() Standard `tempfile.TemporaryDirectory()` replacement. Issue: #36322 URL: #36375 Reported by: Michael Orlitzky Reviewer(s): David Coudert
2 parents bc8d82a + 966470e commit aadad8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sage/interfaces/gap_workspace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ def prepare_workspace_dir(dir=None):
8888
8989
TESTS::
9090
91-
sage: prepare_workspace_dir(os.path.join(tmp_dir(), "new"))
91+
sage: import tempfile
92+
sage: with tempfile.TemporaryDirectory() as d:
93+
....: prepare_workspace_dir(os.path.join(d, "new"))
9294
'.../new'
9395
"""
9496
if dir is None:

0 commit comments

Comments
 (0)