@@ -1027,9 +1027,9 @@ def test_table_extend_bad_args(self, ts_fixture, table_name):
10271027 ll_table .extend (ll_table_copy , row_indexes = 5 )
10281028 with pytest .raises (TypeError ):
10291029 ll_table .extend (ll_table_copy , row_indexes = [None ])
1030- with pytest .raises (ValueError , match = "object too deep " ):
1030+ with pytest .raises (ValueError , match = "array " ):
10311031 ll_table .extend (ll_table_copy , row_indexes = [[0 , 1 ], [2 , 3 ]])
1032- with pytest .raises (ValueError , match = "object too deep " ):
1032+ with pytest .raises (ValueError , match = "array " ):
10331033 ll_table .extend (ll_table_copy , row_indexes = [[0 , 1 ]])
10341034 with pytest .raises (_tskit .LibraryError , match = "out of bounds" ):
10351035 ll_table .extend (ll_table_copy , row_indexes = [- 1 ])
@@ -3248,7 +3248,7 @@ def test_bad_nodes(self):
32483248 params ["mode" ] = "branch"
32493249 for nodes in ["abc" , [[1 , 2 ]]]:
32503250 params ["nodes" ] = nodes
3251- with pytest .raises (ValueError , match = "desired array" ):
3251+ with pytest .raises (ValueError , match = "array" ):
32523252 ts .genetic_relatedness_vector (** params )
32533253 for nodes in [[- 1 , 3 ], [3 , 2 * ts .get_num_nodes ()]]:
32543254 params ["nodes" ] = nodes
@@ -3358,7 +3358,7 @@ def test_nodes_type_and_bounds(self):
33583358 ts = self .get_simple_example ()
33593359 ref = b"NNNNNNNNNN"
33603360 # Bad nodes type
3361- with pytest .raises (ValueError , match = "desired array" ):
3361+ with pytest .raises (ValueError , match = "array" ):
33623362 ts .decode_alignments (ref , [[0 , 1 ]], 0 , ts .get_sequence_length (), "N" , True )
33633363 # Out of bounds
33643364 bad_nodes = np .array ([ts .get_num_nodes ()], dtype = np .int32 )
0 commit comments