Skip to content

Commit

Permalink
Fix test for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Oct 31, 2017
1 parent c5799ec commit 92dc127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy/tests/vocab/test_add_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 92dc127

Please sign in to comment.