Skip to content

Commit

Permalink
Merge pull request #8942 from JuliaLang/nalimilan/tempname
Browse files Browse the repository at this point in the history
Use tempname() instead of custom file path in test/pkg.jl
  • Loading branch information
nolta committed Nov 10, 2014
2 parents ef83e8d + 8e75fd2 commit 8bce4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pkg.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function temp_pkg_dir(fn::Function)
# Used in tests below to setup and teardown a sandboxed package directory
const tmpdir = ENV["JULIA_PKGDIR"] = abspath(string("tmp.",randstring()))
const tmpdir = ENV["JULIA_PKGDIR"] = tempname()
@test !isdir(Pkg.dir())
try
Pkg.init()
Expand Down

0 comments on commit 8bce4df

Please sign in to comment.