File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ function onormalize(s)
90
90
# Remove stacktraces
91
91
s = replace (s, r" (│\s +Stacktrace:)(\n (│\s +)\[ [0-9]+\] .*)(\n (│\s +)@.*)?+" => s "\1\\ n\3 {STACKTRACE}" )
92
92
93
+ # In Julia 1.9, the printing of UndefVarError has slightly changed (added backticks around binding name)
94
+ s = replace (s, r" UndefVarError: `([A-Za-z0-9.]+)` not defined" m => s " UndefVarError: \1 not defined" )
95
+
93
96
return s
94
97
end
95
98
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ DocTestFilters = [
21
21
# remove stacktraces
22
22
r"Stacktrace:(\n \[[0-9]+\].*)*",
23
23
# remove file paths from at-block URLs
24
- r"└ @ .+:[0-9]+"
24
+ r"└ @ .+:[0-9]+",
25
+ # Account for the printing change of UndefVarError
26
+ r"UndefVarError: `?s`? not defined",
25
27
]
26
28
```
27
29
You can’t perform that action at this time.
0 commit comments