From 92dc12756920906a7afb5a13da3f95f041c0068b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 31 Oct 2017 22:21:55 +0100 Subject: [PATCH] Fix test for Python 3 --- spacy/tests/vocab/test_add_vectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/vocab/test_add_vectors.py b/spacy/tests/vocab/test_add_vectors.py index 3dcce67cc..3ef599678 100644 --- a/spacy/tests/vocab/test_add_vectors.py +++ b/spacy/tests/vocab/test_add_vectors.py @@ -35,6 +35,6 @@ def test_vocab_prune_vectors(): remap = vocab.prune_vectors(2) assert list(remap.keys()) == [u'kitten'] - neighbour, similarity = remap.values()[0] + neighbour, similarity = list(remap.values())[0] assert neighbour == u'cat', remap assert_allclose(similarity, cosine(data[0], data[2]), atol=1e-6)