Skip to content

Commit

Permalink
Fix use of deprecated mktemp that was causing intermittent test failu…
Browse files Browse the repository at this point in the history
…res.
  • Loading branch information
grafikrobot committed Jun 9, 2024
1 parent 47e69b8 commit 38db3fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/TestCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ def workdir_set(self, path):
else:
if path != None:
if path == '':
path = tempfile.mktemp()
if path != None:
path = tempfile.mkdtemp(prefix="b2")
elif path != None:
os.mkdir(path)
self._dirlist.append(path)
global _Cleanup
Expand Down

0 comments on commit 38db3fd

Please sign in to comment.