Skip to content

Commit 9c4e10b

Browse files
erykoffTallJimbo
authored andcommitted
Fix test to actually test the right array-match.
1 parent 031eb1e commit 9c4e10b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pybind11_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def testStrideHandling(self):
4040
array = numpy.zeros(1, dtype=float)
4141
# just test that these don't throw
4242
pybind11_test_mod.acceptArray10(array)
43-
pybind11_test_mod.acceptArray10(array)
43+
pybind11_test_mod.acceptArray1(array)
4444
array = numpy.zeros(0, dtype=float)
4545
pybind11_test_mod.acceptArray10(array)
46-
pybind11_test_mod.acceptArray10(array)
46+
pybind11_test_mod.acceptArray1(array)
4747
# test that we gracefully fail when the strides are no multiples of the itemsize
4848
dtype = numpy.dtype([("f1", numpy.float64), ("f2", numpy.int16)])
4949
table = numpy.zeros(3, dtype=dtype)

0 commit comments

Comments
 (0)