Skip to content

Commit

Permalink
Pkg: fix circleci ci (#28135)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Jul 16, 2018
1 parent 08cc23e commit 199b74e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stdlib/Pkg/test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ end

function with_temp_env(f, env_name::AbstractString="Dummy")
env_path = joinpath(mktempdir(), env_name)
Pkg.generate(env_path)
withenv("USER" => "Test User") do
Pkg.generate(env_path)
end
Pkg.activate(env_path)
try
applicable(f, env_path) ? f(env_path) : f()
Expand Down

0 comments on commit 199b74e

Please sign in to comment.