From 0b190c5d420889364086c564f803f521bca72cb0 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 31 May 2023 17:23:07 +0200 Subject: [PATCH] Address numpy 1.25 deprecations in test suite (#12684) * Address upcoming numpy v1.25 deprecations in test suite * Temporarily test most recent numpy prerelease in CI * Revert "Temporarily test most recent numpy prerelease in CI" This reverts commit d75a66e55e29e38f8cb3daf4f55a7b87ec13a7fe. --- spacy/tests/serialize/test_resource_warning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/serialize/test_resource_warning.py b/spacy/tests/serialize/test_resource_warning.py index 38701c6d9..befd05635 100644 --- a/spacy/tests/serialize/test_resource_warning.py +++ b/spacy/tests/serialize/test_resource_warning.py @@ -72,7 +72,7 @@ def entity_linker(): def create_kb(vocab): kb = InMemoryLookupKB(vocab, entity_vector_length=1) - kb.add_entity("test", 0.0, zeros((1, 1), dtype="f")) + kb.add_entity("test", 0.0, zeros((1,), dtype="f")) return kb entity_linker = nlp.add_pipe("entity_linker")