From e9ab711f92f1266975ba9ae8500f399e4f31d0c9 Mon Sep 17 00:00:00 2001 From: apaz-cli Date: Thu, 17 Nov 2022 10:33:26 -0600 Subject: [PATCH] Fixed more tests --- stdlib/Test/test/runtests.jl | 2 +- test/error.jl | 2 +- test/worlds.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/Test/test/runtests.jl b/stdlib/Test/test/runtests.jl index 7902ca7c39f4b6..a8d77b9450a57e 100644 --- a/stdlib/Test/test/runtests.jl +++ b/stdlib/Test/test/runtests.jl @@ -324,7 +324,7 @@ let errors = @testset NoThrowTestSet begin let str = sprint(show, errors[2]) @test occursin("Expression: ==(1, 1:2...)", str) - @test occursin("MethodError: no method matching ==(::$Int, ::$Int, ::$Int)", str) + @test occursin("MethodError: no method matching for call to ==(::$Int, ::$Int, ::$Int)", str) end let str = sprint(show, errors[3]) diff --git a/test/error.jl b/test/error.jl index e9cdfa100bc812..955af89e63d720 100644 --- a/test/error.jl +++ b/test/error.jl @@ -96,7 +96,7 @@ end f44319(1) catch e s = sprint(showerror, e) - @test s == "MethodError: no method matching f44319(::Int$(Sys.WORD_SIZE))\n\nClosest candidates are:\n f44319()\n @ $curmod_str none:0\n" + @test s == "MethodError: no method matching for call to f44319(::Int$(Sys.WORD_SIZE))\n\nClosest candidates are:\n f44319()\n @ $curmod_str none:0\n" end end diff --git a/test/worlds.jl b/test/worlds.jl index 39a9dc4d9a7889..cddee898ab2bb8 100644 --- a/test/worlds.jl +++ b/test/worlds.jl @@ -167,7 +167,7 @@ let ex = t265.exception str = sprint(showerror, ex) wc = get_world_counter() cmps = """ - MethodError: no method matching h265() + MethodError: no method matching for call to h265() The applicable method may be too new: running in world age $wc265, while current world is $wc.""" @test startswith(str, cmps) cmps = "\n h265() (method too new to be called from this world context.)\n $loc_h265"