@@ -52,7 +52,11 @@ isdefined(Main, :Revise) ? Main.Revise.includet("script.jl") : include("script.j
5252 @test startswith (src, " @inline" )
5353 @test line == 16
5454 @test @code_string (multilinesig (1 , " hi" )) == src
55- @test_throws ErrorException (" no unique matching method found for the specified argument types" ) @code_string (multilinesig (1 , 2 ))
55+ if Base. VERSION < v " 1.11.0-0"
56+ @test_throws ErrorException (" no unique matching method found for the specified argument types" ) @code_string (multilinesig (1 , 2 ))
57+ else
58+ @test_throws " but no method is defined for this combination of argument types" @code_string (multilinesig (1 , 2 ))
59+ end
5660
5761 m = first (methods (f50))
5862 src, line = definition (String, m)
@@ -78,7 +82,8 @@ isdefined(Main, :Revise) ? Main.Revise.includet("script.jl") : include("script.j
7882 io = PipeBuffer ()
7983 show (io, info)
8084 str = read (io, String)
81- @test startswith (str, " PkgFiles(CodeTracking [da1fd8a2-8d9e-5ec2-8556-3022fb5608a2]):\n basedir:" )
85+ @test startswith (str, " PkgFiles(CodeTracking [da1fd8a2-8d9e-5ec2-8556-3022fb5608a2]):\n basedir:" ) ||
86+ startswith (str, " PkgFiles(Base.PkgId(Base.UUID(\" da1fd8a2-8d9e-5ec2-8556-3022fb5608a2\" ), \" CodeTracking\" )):\n basedir:" )
8287 ioctx = IOContext (io, :compact => true )
8388 show (ioctx, info)
8489 str = read (io, String)
@@ -262,7 +267,7 @@ isdefined(Main, :Revise) ? Main.Revise.includet("script.jl") : include("script.j
262267 # Issue 115, Cthulhu issue 404
263268 m = @which (Vector)(Int[])
264269 src, line = definition (String, m)
265- @test occursin (" (Array{T,N} where T)(x::AbstractArray{S,N}) where {S,N}" , src)
270+ @test occursin (filter ( ! isspace, " (Array{T,N} where T)(x::AbstractArray{S,N}) where {S,N}" ), filter ( ! isspace, src) )
266271 @test line == m. line
267272
268273 # Issue 115, Cthulhu issue 474
0 commit comments