Skip to content

Commit 924f790

Browse files
apaz-climaleadt
authored andcommitted
Fixed more tests
1 parent dc4d8a1 commit 924f790

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

stdlib/Test/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ let errors = @testset NoThrowTestSet begin
324324

325325
let str = sprint(show, errors[2])
326326
@test occursin("Expression: ==(1, 1:2...)", str)
327-
@test occursin("MethodError: no method matching ==(::$Int, ::$Int, ::$Int)", str)
327+
@test occursin("MethodError: no method matching for call to ==(::$Int, ::$Int, ::$Int)", str)
328328
end
329329

330330
let str = sprint(show, errors[3])

test/error.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ end
9696
f44319(1)
9797
catch e
9898
s = sprint(showerror, e)
99-
@test s == "MethodError: no method matching f44319(::Int$(Sys.WORD_SIZE))\n\nClosest candidates are:\n f44319()\n @ $curmod_str none:0\n"
99+
@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"
100100
end
101101
end
102102

test/worlds.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ let ex = t265.exception
167167
str = sprint(showerror, ex)
168168
wc = get_world_counter()
169169
cmps = """
170-
MethodError: no method matching h265()
170+
MethodError: no method matching for call to h265()
171171
The applicable method may be too new: running in world age $wc265, while current world is $wc."""
172172
@test startswith(str, cmps)
173173
cmps = "\n h265() (method too new to be called from this world context.)\n $loc_h265"

0 commit comments

Comments
 (0)