From de436bca43c41ff6d8d5a461a07043ef8b854331 Mon Sep 17 00:00:00 2001 From: samyak jain Date: Tue, 9 Jan 2018 20:55:01 +0530 Subject: [PATCH] Fixes #1828 , Tests Added --- gensim/test/test_BM25.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gensim/test/test_BM25.py b/gensim/test/test_BM25.py index ae0332f6c5..6cc95a922c 100644 --- a/gensim/test/test_BM25.py +++ b/gensim/test/test_BM25.py @@ -29,7 +29,7 @@ def test_nonnegative_weights(self): weights = get_bm25_weights(common_texts) for doc_weights in weights: for weight in doc_weights: - self.assertTrue(weight >=0 ) + self.assertTrue(weight >= 0) def test_same_match_with_same_document(self): """ A document should always get the same weight when matched with a particular document """