Skip to content

Commit

Permalink
fix deprecated dict syntax in pkg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed Nov 4, 2014
1 parent 91d8324 commit 83c2624
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end

# testing a package with test dependencies causes them to be installed for the duration of the test
temp_pkg_dir() do
Pkg.generate("PackageWithTestDependencies", "MIT", config=["user.name"=>"Julia Test", "user.email"=>"test@julialang.org"])
Pkg.generate("PackageWithTestDependencies", "MIT", config=Dict("user.name"=>"Julia Test", "user.email"=>"test@julialang.org"))
@test [keys(Pkg.installed())...] == ["PackageWithTestDependencies"]

isdir(Pkg.dir("PackageWithTestDependencies","test")) || mkdir(Pkg.dir("PackageWithTestDependencies","test"))
Expand All @@ -47,7 +47,7 @@ end

# testing a package with no runtests.jl errors
temp_pkg_dir() do
Pkg.generate("PackageWithNoTests", "MIT", config=["user.name"=>"Julia Test", "user.email"=>"test@julialang.org"])
Pkg.generate("PackageWithNoTests", "MIT", config=Dict("user.name"=>"Julia Test", "user.email"=>"test@julialang.org"))

if isfile(Pkg.dir("PackageWithNoTests", "test", "runtests.jl"))
rm(Pkg.dir("PackageWithNoTests", "test", "runtests.jl"))
Expand All @@ -62,7 +62,7 @@ end

# testing a package with failing tests errors
temp_pkg_dir() do
Pkg.generate("PackageWithFailingTests", "MIT", config=["user.name"=>"Julia Test", "user.email"=>"test@julialang.org"])
Pkg.generate("PackageWithFailingTests", "MIT", config=Dict("user.name"=>"Julia Test", "user.email"=>"test@julialang.org"))

isdir(Pkg.dir("PackageWithFailingTests","test")) || mkdir(Pkg.dir("PackageWithFailingTests","test"))
open(Pkg.dir("PackageWithFailingTests", "test", "runtests.jl"),"w") do f
Expand All @@ -76,4 +76,3 @@ temp_pkg_dir() do
@test err.msg == "PackageWithFailingTests had test errors"
end
end

0 comments on commit 83c2624

Please sign in to comment.