From cd96649a03a84944cc635652d8950a0d559189dc Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 22 Oct 2020 19:39:18 +0200 Subject: [PATCH] make tests work for julia 1.3 --- Project.toml | 4 ++-- test/ReferenceTests/src/runtests.jl | 4 ++-- test/reference_tests.jl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 06448117b..da0979039 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ +authors = ["Simon Danisch", "Julius Krumbiegel"] name = "AbstractPlotting" uuid = "537997a7-5e4e-5d89-9595-2241ea00577e" -authors = ["Simon Danisch", "Julius Krumbiegel"] -version = "0.13.0" +version = "0.13.1" [deps] Animations = "27a7e980-b3e6-11e9-2bcd-0b925532e340" diff --git a/test/ReferenceTests/src/runtests.jl b/test/ReferenceTests/src/runtests.jl index 03f8a9ea2..4e6faacab 100644 --- a/test/ReferenceTests/src/runtests.jl +++ b/test/ReferenceTests/src/runtests.jl @@ -45,7 +45,7 @@ function compare(test_files::Vector{String}, reference_dir::String; missing_refi if !isdir(ref_path) push!(missing_refimages, test_path) else - compare(readdir(test_path, join=true), ref_path; missing_refimages=missing_refimages, scores=scores) + compare(joinpath.(test_path, readdir(test_path)), ref_path; missing_refimages=missing_refimages, scores=scores) end elseif isfile(test_path) if !isfile(ref_path) @@ -65,7 +65,7 @@ end function reference_tests(recorded; ref_images = ReferenceTests.download_refimages(), difference=0.03) @testset "Reference Image Tests" begin - missing_files, scores = ReferenceTests.compare(readdir(recorded, join=true), ref_images) + missing_files, scores = ReferenceTests.compare(joinpath.(recorded, readdir(recorded)), ref_images) @testset "$name" for (name, score) in scores @test score < difference end diff --git a/test/reference_tests.jl b/test/reference_tests.jl index e742532b4..d4cc2359c 100644 --- a/test/reference_tests.jl +++ b/test/reference_tests.jl @@ -1,4 +1,4 @@ -Pkg.develop(path=joinpath(@__DIR__, "ReferenceTests")) +Pkg.develop(Pkg.PackageSpec(path=joinpath(@__DIR__, "ReferenceTests"))) using ReferenceTests