Skip to content

Commit 858af7b

Browse files
author
Christopher Rowley
committed
nest new test under existing PyArray testitem
1 parent 8460386 commit 858af7b

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

test/Wrap.jl

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,16 @@
8989
@test strides(y) == strides(y2)
9090
@test y == y2
9191
end
92-
end
93-
94-
@testitem "PyArray buffer with suboffsets is rejected" begin
95-
tb = pyimport("_testbuffer")
96-
nd = tb.ndarray(
97-
pylist([1, 2, 3, 4, 5, 6]),
98-
shape = pylist([2, 3]),
99-
format = "i",
100-
flags = tb.ND_PIL | tb.ND_WRITABLE,
101-
)
102-
@test_throws Exception PyArray(nd; array = false, buffer = true)
92+
@testset "reject suboffsets (#775)" begin
93+
tb = pyimport("_testbuffer")
94+
nd = tb.ndarray(
95+
pylist([1, 2, 3, 4, 5, 6]),
96+
shape = pylist([2, 3]),
97+
format = "i",
98+
flags = tb.ND_PIL | tb.ND_WRITABLE,
99+
)
100+
@test_throws Exception PyArray(nd; array = false, buffer = true)
101+
end
103102
end
104103

105104
@testitem "PyDict" begin

0 commit comments

Comments
 (0)