Skip to content

Commit

Permalink
Fix Win/*NIX discrepancy in the tempname test
Browse files Browse the repository at this point in the history
Discussion in JuliaLang#9053.
  • Loading branch information
Pontus Stenetorp authored and waTeim committed Nov 23, 2014
1 parent e94a3c8 commit 35970b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ my_tempdir = tempdir()
@test isdir(my_tempdir) == true

path = tempname()
@test ispath(path) == false
# Issue #9053.
@unix_only @test ispath(path) == false
@windows_only @test ispath(path) == true

(p, f) = mktemp()
print(f, "Here is some text")
Expand Down

0 comments on commit 35970b1

Please sign in to comment.