@@ -41,15 +41,16 @@ def testStrideHandling(self):
4141 # the zero shape array tests are simply checking that pybind11 can handle
4242 # arbitrary strides (non-zero for length 1 array, zero for length 0 array
4343 # for numpy >= 1.23).
44- pybind11_test_mod .acceptZeroShapeArray10 (array )
45- pybind11_test_mod .acceptZeroShapeArray11 (array )
44+ pybind11_test_mod .acceptAnyArray10 (array )
45+ pybind11_test_mod .acceptAnyArray11 (array )
4646 array = numpy .zeros (0 , dtype = float )
47- pybind11_test_mod .acceptZeroShapeArray10 (array )
48- pybind11_test_mod .acceptZeroShapeArray11 (array )
47+ pybind11_test_mod .acceptAnyArray10 (array )
48+ pybind11_test_mod .acceptAnyArray11 (array )
4949 # test that we gracefully fail when the strides are no multiples of the itemsize
5050 dtype = numpy .dtype ([("f1" , numpy .float64 ), ("f2" , numpy .int16 )])
5151 table = numpy .zeros (3 , dtype = dtype )
52- self .assertRaises (TypeError , pybind11_test_mod .acceptArray10 , table ['f1' ])
52+ self .assertRaises (TypeError , pybind11_test_mod .acceptAnyArray10 , table ['f1' ])
53+ self .assertRaises (TypeError , pybind11_test_mod .acceptAnyArray11 , table ['f1' ])
5354
5455 def testNone (self ):
5556 array = numpy .zeros (10 , dtype = float )
@@ -62,7 +63,8 @@ def testNonNativeByteOrder(self):
6263 d2 = numpy .dtype (">f8" )
6364 nonnative = d2 if d1 == numpy .dtype (float ) else d1
6465 a = numpy .zeros (5 , dtype = nonnative )
65- self .assertRaises (TypeError , pybind11_test_mod .acceptArray10 , a )
66+ self .assertRaises (TypeError , pybind11_test_mod .acceptAnyArray10 , a )
67+ self .assertRaises (TypeError , pybind11_test_mod .acceptAnyArray11 , a )
6668
6769
6870if __name__ == "__main__" :
0 commit comments