diff --git a/spacy/about.py b/spacy/about.py index dc521045c..499133cc0 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -1,6 +1,6 @@ # fmt: off __title__ = "spacy" -__version__ = "3.1.0.dev0" +__version__ = "3.1.0" __download_url__ = "https://github.com/explosion/spacy-models/releases/download" __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json" __projects__ = "https://github.com/explosion/projects" diff --git a/spacy/tests/test_language.py b/spacy/tests/test_language.py index 137aea04f..916247d4d 100644 --- a/spacy/tests/test_language.py +++ b/spacy/tests/test_language.py @@ -489,11 +489,8 @@ def test_language_source_and_vectors(nlp2): nlp.vocab.strings.add(long_string) assert nlp.vocab.vectors.to_bytes() != nlp2.vocab.vectors.to_bytes() vectors_bytes = nlp.vocab.vectors.to_bytes() - # TODO: convert to pytest.warns for v3.1 - logger = logging.getLogger("spacy") - with mock.patch.object(logger, "warning") as mock_warning: + with pytest.warns(UserWarning): nlp2.add_pipe("textcat", name="textcat2", source=nlp) - mock_warning.assert_called() # strings should be added assert long_string in nlp2.vocab.strings # vectors should remain unmodified