Merge pull request #3665 from t-bltg/tol2

More strict on tolerance - drop tol for obsolete version
This commit is contained in:
t-bltg 2021-07-23 20:41:49 +02:00 committed by GitHub
commit 26ddb62a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,12 +70,7 @@ include("imgcomp.jl")
Random.seed!(PLOTS_SEED) Random.seed!(PLOTS_SEED)
default(show=false, reuse=true) default(show=false, reuse=true)
is_ci() = get(ENV, "CI", "false") == "true" is_ci() = get(ENV, "CI", "false") == "true"
const PLOTS_IMG_TOL = parse( const PLOTS_IMG_TOL = parse(Float64, get(ENV, "PLOTS_IMG_TOL", is_ci() ? "1e-4" : "1e-5"))
Float64, get(
ENV, "PLOTS_IMG_TOL",
VERSION < v"1.4" && Sys.iswindows() ? "1e-1" : is_ci() ? "1e-2" : "1e-3"
)
)
## Uncomment the following lines to update reference images for different backends ## Uncomment the following lines to update reference images for different backends