Skip to content

Commit 0792cc8

Browse files
authored
Merge pull request #250 from julia-vscode/test-failure-1.7
Fix a test on Julia 1.7
2 parents dc17acd + af73dd5 commit 0792cc8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ end
136136

137137
@testset "symbol documentation" begin
138138
@test !isempty(SymbolServer.stdlibs[:Base][:abs].doc) # Function
139-
@test !isempty(SymbolServer.stdlibs[:Base][:Pair].doc) # DataType
139+
if VERSION >= v"1.7"
140+
@test !isempty(SymbolServer.stdlibs[:Core][:Pair].doc) # DataType
141+
else
142+
@test !isempty(SymbolServer.stdlibs[:Base][:Pair].doc) # DataType
143+
end
140144
@test !isempty(SymbolServer.stdlibs[:Base][:Libc].doc) # Module
141145
@test !isempty(SymbolServer.stdlibs[:Base][:LinRange].doc) # UnionAll
142146
@test !isempty(SymbolServer.stdlibs[:Base][:VecOrMat].doc) # Union

0 commit comments

Comments
 (0)