diff --git a/gensim/test/test_doc2vec.py b/gensim/test/test_doc2vec.py index 200780dd9f..06065bdc18 100644 --- a/gensim/test/test_doc2vec.py +++ b/gensim/test/test_doc2vec.py @@ -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