From 32495e235a125ea3b2cc58eafa4dadbce6aedcb3 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 12 Sep 2023 16:43:24 +0200 Subject: [PATCH] fix old julia tests --- test/exceptions.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/exceptions.jl b/test/exceptions.jl index 51909c9..66b9145 100644 --- a/test/exceptions.jl +++ b/test/exceptions.jl @@ -37,7 +37,8 @@ end CallFailedException, m.remote_eval_wait(w, :(sqrt(-1))), ) - @test_throws( + # searching for strings requires Julia 1.8 + VERSION >= v"1.8.0" && @test_throws( ["Remote exception", "DomainError", "math.jl"], m.remote_eval_wait(w, :(sqrt(-1))), ) @@ -88,7 +89,8 @@ end CallFailedAndDeserializationOfExceptionFailedException, m.remote_eval_fetch(w, :(throw($stub_type_name2()))), ) - @test_throws( + # searching for strings requires Julia 1.8 + VERSION >= v"1.8.0" && @test_throws( ["Remote exception", W !== m.DistributedStdlibWorker ? "secretttzz" : "deseriali"], m.remote_eval_fetch(w, :(throw($stub_type_name2()))), )