From cb22c8ebf695bc4f5ef758feb58ba8c5cf2b87e7 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Tue, 27 Apr 2021 17:30:36 +0200 Subject: [PATCH] test package completion if already imported (#36552) --- stdlib/REPL/test/replcompletions.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/REPL/test/replcompletions.jl b/stdlib/REPL/test/replcompletions.jl index 8a1d2f39a18f4..dd6327e7a34bd 100644 --- a/stdlib/REPL/test/replcompletions.jl +++ b/stdlib/REPL/test/replcompletions.jl @@ -117,6 +117,10 @@ let s = "using REP" @test count(isequal("REPL"), c) == 1 # issue #30234 @test !Base.isbindingresolved(M32377, :tanh) + # check what happens if REPL is already imported + M32377.eval(:(using REPL)) + c, r = test_complete_32377(s) + @test count(isequal("REPL"), c) == 1 end let s = "Comp"