Skip to content

Commit

Permalink
Syntax change in test_statistic_class.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emprzy committed Dec 2, 2024
1 parent 6fc2a5a commit f8b9dc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def test_compute_logloss_data_misshape_value_error(

model_rows, model_cols = mock_inputs.model_data[mock_inputs.config["sim_var"]].shape
gt_rows, gt_cols = mock_inputs.gt_data[mock_inputs.config["data_var"]].shape
expected_match = rf".*'{mock_inputs.model_data[mock_inputs.config["sim_var"]].shape}' !=.*'{mock_inputs.gt_data[mock_inputs.config["data_var"]].shape}'"
expected_match = rf".*'{mock_inputs.model_data[mock_inputs.config['sim_var']].shape}' !=.*'{mock_inputs.gt_data[mock_inputs.config['data_var']].shape}'"
with pytest.raises(ValueError, match=expected_match):
statistic.compute_logloss(mock_inputs.model_data, mock_inputs.gt_data)

Expand Down

0 comments on commit f8b9dc3

Please sign in to comment.