Skip to content

Commit 1c47fe6

Browse files
alloc tests throw
1 parent 098264b commit 1c47fe6

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

test/downstream/alloccheck.jl

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ op = AddedOperator(A, B)
2424
return nothing
2525
end
2626

27-
if VERSION >= v"1.11"
28-
apply_op!(op, w, v, u, p, t)
29-
else
30-
@test_throws AllocCheckFailure apply_op!(op, w, v, u, p, t)
31-
end
27+
@test_throws AllocCheckFailure apply_op!(op, w, v, u, p, t)
3228

3329
for T in (Float32, Float64, ComplexF32, ComplexF64)
3430
N = 100
@@ -57,12 +53,6 @@ for T in (Float32, Float64, ComplexF32, ComplexF64)
5753
p == 0.1,)
5854
t = 0.1
5955

60-
# Test allocations with original interface
61-
if VERSION >= v"1.11"
62-
apply_op!(H_sparse, w, v, u, p, t)
63-
apply_op!(H_dense, w, v, u, p, t)
64-
else
65-
@test_throws AllocCheckFailure apply_op!(H_sparse, w, v, u, p, t)
66-
@test_throws AllocCheckFailure apply_op!(H_dense, w, v, u, p, t)
67-
end
56+
@test_throws AllocCheckFailure apply_op!(H_sparse, w, v, u, p, t)
57+
@test_throws AllocCheckFailure apply_op!(H_dense, w, v, u, p, t)
6858
end

0 commit comments

Comments
 (0)