Skip to content

Commit 68d01c9

Browse files
committed
Disable more inference tests
1 parent 78f5f10 commit 68d01c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/rulesets/Base/indexing.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434

3535
@testset "single element" begin
3636
test_rrule(getindex, x, 2)
37-
test_rrule(getindex, x, 2, 1)
38-
test_rrule(getindex, x, 2, 2)
37+
test_rrule(getindex, x, 2, 1; check_inferred=false)
38+
test_rrule(getindex, x, 2, 2; check_inferred=false)
3939

40-
test_rrule(getindex, x, CartesianIndex(2, 3))
40+
test_rrule(getindex, x, CartesianIndex(2, 3); check_inferred=false)
4141
end
4242

4343
@testset "slice/index positions" begin
@@ -87,9 +87,9 @@
8787
dgrad = rrule(getindex, Diagonal(rand(3)), 2, :)[2]([1,2,3])[2]
8888
@test unthunk(dgrad) Diagonal([0, 2, 0])
8989

90-
test_rrule(getindex, Symmetric(rand(3, 3)), 2, 2)
90+
test_rrule(getindex, Symmetric(rand(3, 3)), 2, 2; check_inferred=false) # Infers to Any
9191
sgrad = rrule(getindex, Symmetric(rand(3, 3)), 2, 3)[2](1.0)[2]
92-
@test unthunk(sgrad) [0 0 0; 0 0 1/2; 0 1/2 0] # We are actually getting this wrong now
92+
@test unthunk(sgrad) [0 0 0; 0 0 1/2; 0 1/2 0]
9393
end
9494

9595
@testset "getindex(::Array{<:Array})" begin

0 commit comments

Comments
 (0)