diff --git a/test/ExpressionExplorer.jl b/test/ExpressionExplorer.jl index c8db638385..4055846109 100644 --- a/test/ExpressionExplorer.jl +++ b/test/ExpressionExplorer.jl @@ -611,6 +611,8 @@ Some of these @test_broken lines are commented out to prevent printing to the te @test ExpressionExplorer.external_package_names(:(using Plots, Something.Else, .LocalModule)) == Set([:Plots, :Something]) @test ExpressionExplorer.external_package_names(:(import Plots.A: b, c)) == Set([:Plots]) - @test ExpressionExplorer.external_package_names(:(import Foo as Bar, Baz.Naz as Jazz)) == Set([:Foo, :Baz]) + if VERSION >= v"1.6.0" + @test ExpressionExplorer.external_package_names(Meta.parse("import Foo as Bar, Baz.Naz as Jazz")) == Set([:Foo, :Baz]) + end end end