@@ -204,19 +204,21 @@ end
204204 @test getline (values (fdictc)) == getline (values (fdict0)) + 2
205205end
206206
207+ import InteractiveUtils
208+
207209@testset " Module short names" begin
208210 Profile. clear ()
209- @profile peakflops ()
211+ @profile InteractiveUtils . peakflops ()
210212 io = IOBuffer ()
211- IOContext (io, :displaysize => (1000 ,1000 ))
213+ ioc = IOContext (io, :displaysize => (1000 ,1000 ))
212214 Profile. print (ioc, C= true )
213215 str = String (take! (io))
214- @test occursin (" @Compiler/src" , str)
215- @test occursin (" @Base/src " , str)
216- @test occursin (" @InteractiveUtils/src" , str)
217- @test occursin (" @LinearAlgebra/src" , str)
218- @test occursin (" @juliasrc" , str)
219- @test occursin (" @julialib" , str)
216+ @test occursin (" @Compiler/src/ " , str)
217+ @test occursin (" @Base/" , str)
218+ @test occursin (" @InteractiveUtils/src/ " , str)
219+ @test occursin (" @LinearAlgebra/src/ " , str)
220+ @test occursin (" @juliasrc/ " , str)
221+ @test occursin (" @julialib/ " , str)
220222end
221223
222224# Profile deadlocking in compilation (debuginfo registration)
0 commit comments