Skip to content

Commit 2b4d462

Browse files
committed
Adjust tests for JuliaLang/julia#47077 (backlport of #784)
(cherry picked from commit 6e1b40c)
1 parent 39690b0 commit 2b4d462

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runtests.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ end
11651165
DivideError: integer division error
11661166
Stacktrace:.*
11671167
1168-
caused by: UndefVarError: __not_a_binding__ not defined
1168+
caused by: UndefVarError: `?__not_a_binding__`? not defined
11691169
Stacktrace:.*
11701170
"""s, sprint(show, excs_with_bts))
11711171

@@ -1174,23 +1174,23 @@ end
11741174
2-element ExceptionStack:
11751175
DivideError: integer division error
11761176
1177-
caused by: UndefVarError: __not_a_binding__ not defined"""s,
1177+
caused by: UndefVarError: `?__not_a_binding__`? not defined"""s,
11781178
sprint(show, excs_sans_bts))
11791179

11801180
# Check that the ExceptionStack with backtraces `display_error`s correctly:
11811181
@test occursin(r"""
11821182
ERROR: DivideError: integer division error
11831183
Stacktrace:.*
11841184
1185-
caused by: UndefVarError: __not_a_binding__ not defined
1185+
caused by: UndefVarError: `?__not_a_binding__`? not defined
11861186
Stacktrace:.*
11871187
"""s, sprint(Base.display_error, excs_with_bts))
11881188

11891189
# Check that the ExceptionStack without backtraces `display_error`s correctly:
11901190
@test occursin(r"""
11911191
ERROR: DivideError: integer division error
11921192
1193-
caused by: UndefVarError: __not_a_binding__ not defined"""s,
1193+
caused by: UndefVarError: `?__not_a_binding__`? not defined"""s,
11941194
sprint(Base.display_error, excs_sans_bts))
11951195
else
11961196
# Due to runtime limitations, julia-1.0 only retains the last exception.

0 commit comments

Comments
 (0)