Skip to content

Commit 18dd08b

Browse files
committed
fix some issues with buildbot path not updating in stacktraces / method errors
1 parent c43a8e6 commit 18dd08b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

stdlib/InteractiveUtils/test/runtests.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -577,15 +577,9 @@ file, ln = functionloc(versioninfo, Tuple{})
577577
e
578578
end
579579
@test e isa MethodError
580+
m = @which versioninfo()
580581
s = sprint(showerror, e)
581-
m = match(r"at (.*?):[0-9]*", s)
582-
@info "DEBUG START"
583-
println(s)
584-
println(m)
585-
println(m.captures[1])
586-
println(expanduser(m.captures[1]))
587-
@info "DEBUG END"
588-
582+
m = match(Regex("at (.*?):$(m.line)"), s)
589583
@test isfile(expanduser(m.captures[1]))
590584

591585
g() = x

0 commit comments

Comments
 (0)