Skip to content

Commit

Permalink
fixup exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Dec 6, 2024
1 parent 8c86a8e commit 8d2573d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ end

Pkg.activate(temp=true)
Pkg.precompile() # precompile an empty env should be a no-op
@test_throws Pkg.Types.PkgError Pkg.precompile("DoesNotExist") # fail to find a nonexistant dep in an empty env
@test_throws ErrorException Pkg.precompile("DoesNotExist") # fail to find a nonexistant dep in an empty env

Pkg.add("Random")
@test_throws Pkg.Types.PkgError Pkg.precompile("Random") # Random is a dep but in the sysimage
@test_throws Pkg.Types.PkgError Pkg.precompile("DoesNotExist")
@test_throws ErrorException Pkg.precompile("Random") # Random is a dep but in the sysimage
@test_throws ErrorException Pkg.precompile("DoesNotExist")
Pkg.precompile() # should be a no-op
end end
@testset "Issue 3359: Recurring precompile" begin
Expand Down

0 comments on commit 8d2573d

Please sign in to comment.