diff --git a/test/pkg.jl b/test/pkg.jl index 784e4e7ae295da..295d5f020991bd 100644 --- a/test/pkg.jl +++ b/test/pkg.jl @@ -41,6 +41,7 @@ temp_pkg_dir() do Pkg.rm("Example") @test isempty(Pkg.installed()) @test !isempty(Pkg.available("Example")) + @test_throws ErrorException Pkg.available("IDoNotExist") Pkg.clone("https://github.com/JuliaLang/Example.jl.git") @test [keys(Pkg.installed())...] == ["Example"] Pkg.status("Example", iob)