Skip to content

Commit 0419467

Browse files
Merge pull request #2795 from SciML/fix-julia-1.11-stabilizedrk-allocations
Fix StabilizedRK allocation tests for Julia 1.11
2 parents 4aed73e + 1da3469 commit 0419467

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/OrdinaryDiffEqStabilizedRK/test/rkc_tests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ end
125125
# check allocations
126126
integrator = init(prob, alg; save_everystep = false)
127127
allocs = @allocations solve!(integrator)
128-
@test allocs <= 3
128+
# Julia 1.11 has an extra allocation in these algorithms
129+
expected_allocs = VERSION >= v"1.11" ? 4 : 3
130+
@test allocs <= expected_allocs
129131
end
130132
end

0 commit comments

Comments
 (0)