From 83c2624757e9f58438bc6d3dc9cd5b22fe7e3101 Mon Sep 17 00:00:00 2001 From: jake bolewski Date: Tue, 4 Nov 2014 11:34:13 -0500 Subject: [PATCH] fix deprecated dict syntax in pkg tests --- test/pkg.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/pkg.jl b/test/pkg.jl index abe40bad181d7..fc696eff12b77 100644 --- a/test/pkg.jl +++ b/test/pkg.jl @@ -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")) @@ -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")) @@ -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 @@ -76,4 +76,3 @@ temp_pkg_dir() do @test err.msg == "PackageWithFailingTests had test errors" end end -