From 8c758ed1ebc3d35f03707e593b83b214d40f434b Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 3 Jun 2020 12:11:57 +0200 Subject: [PATCH] Fix meta path --- spacy/tests/test_misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/tests/test_misc.py b/spacy/tests/test_misc.py index a361d5c0f..d48ba24a2 100644 --- a/spacy/tests/test_misc.py +++ b/spacy/tests/test_misc.py @@ -164,17 +164,17 @@ def test_load_model_version_compat(): # additional compatible upper pin nlp.meta["spacy_version"] = ">=2.3.0,<2.4.0" - srsly.write_json(Path(d / "meta.json"), nlp.meta) + srsly.write_json(meta_path, nlp.meta) util.get_model_meta(d) # incompatible older version nlp.meta["spacy_version"] = ">=2.2.5" - srsly.write_json(Path(d / "meta.json"), nlp.meta) + srsly.write_json(meta_path, nlp.meta) with pytest.warns(UserWarning): util.get_model_meta(d) # invalid version specification nlp.meta["spacy_version"] = ">@#$%_invalid_version" - srsly.write_json(Path(d / "meta.json"), nlp.meta) + srsly.write_json(meta_path, nlp.meta) with pytest.warns(UserWarning): util.get_model_meta(d)