Skip to content

Commit fc7cf0d

Browse files
committed
more specific error check
1 parent 39de287 commit fc7cf0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_simulators/test_simulators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ def test_multimodel_key_conflicts_sample(multimodel_key_conflicts, batch_size):
6767
assert set(samples) == {"x", "model_indices", "c", "w"}
6868
assert np.sum(np.isnan(samples["c"])) + np.sum(np.isnan(samples["w"])) == batch_size
6969
elif multimodel_key_conflicts.key_conflicts == "error":
70-
with pytest.raises(Exception):
70+
with pytest.raises(ValueError):
7171
samples = multimodel_key_conflicts.sample(batch_size)

0 commit comments

Comments
 (0)