From 9955044b4d82e4732d0f9a78d67671e02ee9053f Mon Sep 17 00:00:00 2001 From: st-- Date: Wed, 24 Nov 2021 18:55:18 +0200 Subject: [PATCH] Fix for Zygote 0.6.30 breaking our tests (#409) * restrict Zygote to <0.6.30 * revert Zygote test restriction and add finer-grained testset * Update test/utils.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * revert testset * mark test_broken * Use `@test_throws` instead of `@test_broken` Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Widmann --- test/test_utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_utils.jl b/test/test_utils.jl index 22fe9fb08..141fcb96e 100644 --- a/test/test_utils.jl +++ b/test/test_utils.jl @@ -100,7 +100,7 @@ function check_zygote_type_stability(f, args...; ctx=Zygote.Context()) @inferred f(args...) @inferred Zygote._pullback(ctx, f, args...) out, pb = Zygote._pullback(ctx, f, args...) - @inferred pb(out) + @test_throws ErrorException @inferred pb(out) end function test_ADs(