From c55968b7a94873e90f4a47a1343cd3a17398eac9 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Tue, 30 Jul 2024 23:26:07 +0000 Subject: [PATCH] Keep the tests running on old Julia versions --- test/direct.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/direct.jl b/test/direct.jl index 5b01a3e..c46c85d 100644 --- a/test/direct.jl +++ b/test/direct.jl @@ -1,8 +1,10 @@ using Libdl, Test, OpenBLAS_jll, OpenBLAS32_jll, MKL_jll -openblas32_version = pkgversion(OpenBLAS32_jll) -openblas32_version = VersionNumber(openblas32_version.major, openblas32_version.minor, openblas32_version.patch) -if openblas32_version != v"0.3.10" - throw(ArgumentError("Wrong version of OpenBLAS32_jll ($(pkgversion(OpenBLAS32_jll))); this test suite requires an old OpenBLAS32_jll!")) +if isdefined(Base, :pkgversion) + openblas32_version = pkgversion(OpenBLAS32_jll) + openblas32_version = VersionNumber(openblas32_version.major, openblas32_version.minor, openblas32_version.patch) + if openblas32_version != v"0.3.10" + throw(ArgumentError("Wrong version of OpenBLAS32_jll ($(pkgversion(OpenBLAS32_jll))); this test suite requires an old OpenBLAS32_jll!")) + end end include("utils.jl")