From b4df3b4e7858736cc0d7d56461b8186c1075ae5e Mon Sep 17 00:00:00 2001 From: MichaelHatherly Date: Wed, 16 Oct 2024 10:02:01 +0100 Subject: [PATCH] Disable Plots test on Windows Julia 1.11 --- test/testsets/integrations/Plots.jl | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/test/testsets/integrations/Plots.jl b/test/testsets/integrations/Plots.jl index d4ad86f..a921a3d 100644 --- a/test/testsets/integrations/Plots.jl +++ b/test/testsets/integrations/Plots.jl @@ -1,16 +1,19 @@ include("../../utilities/prelude.jl") -test_example(joinpath(@__DIR__, "../../examples/integrations/Plots.qmd")) do json - cells = json["cells"] - cell = cells[6] - output = cell["outputs"][1] +# TODO: pdf render on windows 1.11 is stalling in CI, skip for now. +if !Sys.iswindows() && VERSION >= v"1.11.0" + test_example(joinpath(@__DIR__, "../../examples/integrations/Plots.qmd")) do json + cells = json["cells"] + cell = cells[6] + output = cell["outputs"][1] - @test !isempty(output["data"]["image/png"]) - @test !isempty(output["data"]["image/svg+xml"]) - @test !isempty(output["data"]["text/html"]) + @test !isempty(output["data"]["image/png"]) + @test !isempty(output["data"]["image/svg+xml"]) + @test !isempty(output["data"]["text/html"]) - @test cell["outputs"][1]["metadata"]["image/png"] == - Dict("width" => 575, "height" => 432) # Plots does not seem to follow standard dpi rules so the values don't match Makie + @test cell["outputs"][1]["metadata"]["image/png"] == + Dict("width" => 575, "height" => 432) # Plots does not seem to follow standard dpi rules so the values don't match Makie + end end # TODO: pdf render on windows 1.11 is stalling in CI, skip for now.