diff --git a/test/loading.jl b/test/loading.jl index 0f5efc09973f00..7ca540e6602d95 100644 --- a/test/loading.jl +++ b/test/loading.jl @@ -986,7 +986,7 @@ end @test Base.locate_package(pkg, env) === nothing finally copy!(LOAD_PATH, old_load_path) - copy!(DEPOT_PATH, old_load_path) + copy!(DEPOT_PATH, old_depot_path) end end end