Skip to content

Commit 2f5fb47

Browse files
authored
fix #38639, mktemp names not always unique on windows in test (#38779)
1 parent 409fa0a commit 2f5fb47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/file.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ using Random
5656
temps = map(1:100) do _
5757
path, io = mktemp(cleanup=false)
5858
close(io)
59-
rm(path, force=true)
6059
return path
6160
end
6261
@test allunique(temps)
62+
foreach(temps) do path
63+
rm(path, force=true)
64+
end
6365
end
6466

6567
@testset "tempname with parent" begin

0 commit comments

Comments
 (0)