@@ -249,22 +249,26 @@ def test_check_array():
249249 X_str = [['a' , 'b' ], ['c' , 'd' ]]
250250 assert_warns_message (
251251 DeprecationWarning ,
252- "array with dtype {} will be handled as object" .format (np .dtype ('U1' )),
252+ "arrays with dtype {} will be handled as arrays with dtype object"
253+ .format (np .dtype ('U1' )),
253254 check_array , X_str , "numeric" )
254255 assert_warns_message (
255256 DeprecationWarning ,
256- "array with dtype {} will be handled as object" .format (np .dtype ('U1' )),
257+ "arrays with dtype {} will be handled as arrays with dtype object"
258+ .format (np .dtype ('U1' )),
257259 check_array , np .array (X_str , dtype = 'U1' ), "numeric" )
258260
259261 # deprecation warning if byte-like array with dtype="numeric"
260262 X_byte = [[b'a' , b'b' ], [b'c' , b'd' ]]
261263 assert_warns_message (
262264 DeprecationWarning ,
263- "array with dtype {} will be handled as object" .format (np .dtype ('S1' )),
265+ "arrays with dtype {} will be handled as arrays with dtype object"
266+ .format (np .dtype ('S1' )),
264267 check_array , np .array (X_byte , dtype = 'S1' ), "numeric" )
265268 assert_warns_message (
266269 DeprecationWarning ,
267- "array with dtype {} will be handled as object" .format (np .dtype ('V1' )),
270+ "arrays with dtype {} will be handled as arrays with dtype object"
271+ .format (np .dtype ('V1' )),
268272 check_array , np .array (X_byte , dtype = 'V1' ), "numeric" )
269273
270274
0 commit comments