Skip to content

Commit

Permalink
Fix two broken tests (were previously skipped)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungMind1 committed Nov 7, 2024
1 parent 3915c00 commit b147918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gensim/test/test_similarities.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def assertIndexSaved(self, index):
fname = get_tmpfile('gensim_similarities.tst.pkl')
index.save(fname)
self.assertTrue(os.path.exists(fname))
self.assertTrue(os.path.exists(fname + '.d'))
self.assertTrue(os.path.exists(fname + ".dict"))

def assertLoadedIndexEqual(self, index, model):
from gensim.similarities.annoy import AnnoyIndexer
Expand Down Expand Up @@ -676,7 +676,7 @@ def test_save(self):
fname = get_tmpfile('gensim_similarities.tst.pkl')
self.index.save(fname)
self.assertTrue(os.path.exists(fname))
self.assertTrue(os.path.exists(fname + '.d'))
self.assertTrue(os.path.exists(fname + ".dict"))

def test_load_not_exist(self):
from gensim.similarities.annoy import AnnoyIndexer
Expand Down

0 comments on commit b147918

Please sign in to comment.