diff --git a/spacy/tests/pipeline/test_span_finder.py b/spacy/tests/pipeline/test_span_finder.py index 538bf6139..921601283 100644 --- a/spacy/tests/pipeline/test_span_finder.py +++ b/spacy/tests/pipeline/test_span_finder.py @@ -64,7 +64,9 @@ def test_loss_alignment_example(tokens_predicted, tokens_reference, reference_tr span_finder = nlp.add_pipe("span_finder", config={"training_key": TRAINING_KEY}) nlp.initialize() if predicted.text != reference.text: - with pytest.raises(ValueError, match="must match between reference and predicted"): + with pytest.raises( + ValueError, match="must match between reference and predicted" + ): span_finder._get_aligned_truth_scores([example]) return truth_scores = span_finder._get_aligned_truth_scores([example])