Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ test = [
"kastore",
"lshmm",
"msgpack",
"msprime==1.4.1b1", # Temp - just to test msprime builds
"msprime",
"networkx",
"numba",
"portion",
Expand Down
8 changes: 4 additions & 4 deletions python/tests/test_python_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,9 +1027,9 @@ def test_table_extend_bad_args(self, ts_fixture, table_name):
ll_table.extend(ll_table_copy, row_indexes=5)
with pytest.raises(TypeError):
ll_table.extend(ll_table_copy, row_indexes=[None])
with pytest.raises(ValueError, match="object too deep"):
with pytest.raises(ValueError, match="array"):
ll_table.extend(ll_table_copy, row_indexes=[[0, 1], [2, 3]])
with pytest.raises(ValueError, match="object too deep"):
with pytest.raises(ValueError, match="array"):
ll_table.extend(ll_table_copy, row_indexes=[[0, 1]])
with pytest.raises(_tskit.LibraryError, match="out of bounds"):
ll_table.extend(ll_table_copy, row_indexes=[-1])
Expand Down Expand Up @@ -3248,7 +3248,7 @@ def test_bad_nodes(self):
params["mode"] = "branch"
for nodes in ["abc", [[1, 2]]]:
params["nodes"] = nodes
with pytest.raises(ValueError, match="desired array"):
with pytest.raises(ValueError, match="array"):
ts.genetic_relatedness_vector(**params)
for nodes in [[-1, 3], [3, 2 * ts.get_num_nodes()]]:
params["nodes"] = nodes
Expand Down Expand Up @@ -3358,7 +3358,7 @@ def test_nodes_type_and_bounds(self):
ts = self.get_simple_example()
ref = b"NNNNNNNNNN"
# Bad nodes type
with pytest.raises(ValueError, match="desired array"):
with pytest.raises(ValueError, match="array"):
ts.decode_alignments(ref, [[0, 1]], 0, ts.get_sequence_length(), "N", True)
# Out of bounds
bad_nodes = np.array([ts.get_num_nodes()], dtype=np.int32)
Expand Down
Loading