Skip to content

Commit

Permalink
doc2vec: use assertEqual instead of assertEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanteleaga committed Apr 29, 2017
1 parent 1f78683 commit 874eca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/test/test_doc2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def test_mixed_tag_types(self):
model = doc2vec.Doc2Vec()
model.build_vocab(mixed_tag_corpus)
expected_length = len(sentences) + len(model.docvecs.doctags) # 9 sentences, 7 unique first tokens
self.assertEquals(len(model.docvecs.doctag_syn0), expected_length)
self.assertEqual(len(model.docvecs.doctag_syn0), expected_length)

def models_equal(self, model, model2):
# check words/hidden-weights
Expand Down

0 comments on commit 874eca3

Please sign in to comment.