Skip to content

Commit 41c6fb8

Browse files
committed
test: set our prefix to created temp_cwd dirnames
1 parent 8a0334d commit 41c6fb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/t/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ def bash(request) -> pexpect.spawn:
206206
if "cwd" in marker.kwargs and marker.kwargs.get("cwd") is not None:
207207
cwd = marker.kwargs.get("cwd")
208208
elif "temp_cwd" in marker.kwargs and marker.kwargs.get("temp_cwd"):
209-
tmpdir = tempfile.TemporaryDirectory()
209+
tmpdir = tempfile.TemporaryDirectory(
210+
prefix="bash-completion-test_"
211+
)
210212
cwd = tmpdir.name
211213
if cwd is None:
212214
cwd = os.path.join(testdir, "fixtures")

0 commit comments

Comments
 (0)