Skip to content

Commit 3efb801

Browse files
committed
Remove deprecation warning in allocation test
1 parent d8779e3 commit 3efb801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/scalarstats.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ x = sort!(vcat([5:-1:i for i in 1:5]...))
220220
@test_throws ArgumentError mad(Int[], normalize = true)
221221
@test mad(Iterators.repeated(4, 10)) == 0
222222
@test mad(Integer[1,2,3,4]) === mad(1:4)
223-
mad_allocs(itr) = @allocations(mad(itr))
223+
mad_allocs(itr) = @allocations(mad(itr; normalize = false))
224224
let itr = (i for i in 1:10000)
225225
mad_allocs(itr)
226226
@test mad_allocs(itr) < 50

0 commit comments

Comments
 (0)