From b9066093babc2db43355be0b42903d60c6f58228 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Mon, 2 Oct 2023 10:58:38 +0200 Subject: [PATCH] @test_throws julia 1.6 compat --- test/spaces.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spaces.jl b/test/spaces.jl index 1ec463cc..850dfffe 100644 --- a/test/spaces.jl +++ b/test/spaces.jl @@ -119,9 +119,9 @@ println("------------------------------------") @test @constinferred(oneunit(V)) == W == oneunit(typeof(V)) @test @constinferred(⊕(V, V)) == ℂ^(2d) @test_throws SpaceMismatch (⊕(V, V')) - @test_throws "promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments" (⊕(ℝ^d, + @test_throws ErrorException("promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments") (⊕(ℝ^d, ℂ^d)) - @test_throws "promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments" (⊗(ℝ^d, + @test_throws ErrorException("promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments") (⊗(ℝ^d, ℂ^d)) @test @constinferred(⊕(V, V)) == ℂ^(2d) @test @constinferred(⊕(V, oneunit(V))) == ℂ^(d + 1)