From de9c730d2ee4169dc3cc3b71fa7dca41586bbc03 Mon Sep 17 00:00:00 2001 From: Hongyang Zhou Date: Sun, 15 Dec 2024 18:24:34 -0500 Subject: [PATCH] Handle discrepancy between os --- test/runtests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index f1ac390..7e4be4f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -188,13 +188,13 @@ end c = PyPlot.streamplot(bd, "bx;by") @test c.lines.get_segments()[2][3] ≈ -118.68871477694084 c = PyPlot.contourf(bd, "p") - @static if startswith(matplotlib.__version__, "3.9") + @static if startswith(matplotlib.__version__, "3.9") || Sys.isapple() || Sys.iswindows() @test c.get_array()[end] == 1.0500000000000003 else @test c.get_array()[end] == 0.9750000000000002 end c = @suppress_err PyPlot.contourf(bd, "rho", innermask=true) - @static if startswith(matplotlib.__version__, "3.9") + @static if startswith(matplotlib.__version__, "3.9") || Sys.isapple() || Sys.iswindows() @test c.get_array()[end] == 1.0500000000000003 else @test c.get_array()[end] == 0.9750000000000002 @@ -204,7 +204,7 @@ end c= PyPlot.contour(bd, "rho"; levels=[1.0]) @test c.get_array()[end] == 1.0 c = PyPlot.tricontourf(bd, "rho") - @static if startswith(matplotlib.__version__, "3.9") + @static if startswith(matplotlib.__version__, "3.9") || Sys.isapple() || Sys.iswindows() @test c.get_array()[end] == 1.0500000000000003 else @test c.get_array()[end] == 0.9750000000000002