Skip to content

Commit 961f775

Browse files
mcabbottoxinabox
authored andcommitted
skip one alloc test
1 parent 1cfb04f commit 961f775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/projection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ using OffsetArrays, BenchmarkTools
287287
# For sure these fail on Julia 1.0, not sure about 1.1 to 1.5
288288

289289
pvec = ProjectTo(rand(10^3))
290-
@test 0 == @ballocated $pvec(dx) setup=(dx=rand(10^3)) # pass through
290+
VERSION >= v"1.7-" && @test 0 == @ballocated $pvec(dx) setup=(dx=rand(10^3)) # pass through
291291
@test 90 > @ballocated $pvec(dx) setup=(dx=rand(10^3,1)) # reshape
292292

293293
@test 0 == @ballocated ProjectTo(x)(dx) setup=(x=rand(10^3); dx=rand(10^3)) # including construction

0 commit comments

Comments
 (0)