Skip to content

Commit 41f4c17

Browse files
committed
mark as broken the test that fails on 1.0
1 parent e7ecdd6 commit 41f4c17

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

test/chainrules.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,18 @@ using Zygote, Test, ChainRules
144144

145145
@test (1,) == h(1)
146146

147-
a3, pb3 = Zygote.pullback(h, 1)
148-
@test ((1,),) == pb3(1)
149-
end
150147

148+
if VERSION > v"1"
149+
a3, pb3 = Zygote.pullback(h, 1)
150+
@test ((1,),) == pb3(1)
151+
else
152+
# broken on Julia 1.0 because of https://github.com/FluxML/Zygote.jl/issues/638
153+
@test_broken begin
154+
a3, pb3 = Zygote.pullback(h, 1); # line that errors
155+
((1,),) == pb3(1) # line actually being tested
156+
end
157+
end
158+
end
151159

152160
@testset "kwargs" begin
153161
kwfoo_rrule_hitcount = Ref(0)

0 commit comments

Comments
 (0)