Skip to content

Commit

Permalink
Moving assertion outside of a context manager (piskvorky#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
lopusz committed Jan 22, 2020
1 parent 7eef237 commit 6009f0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gensim/test/test_fasttext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,10 @@ def _check_roundtrip_file_file(self, sg):
_save_test_model(m1_basename, model_params)
model = gensim.models.fasttext.load_facebook_model(m1)
gensim.models.fasttext.save_facebook_model(model, m2)
self.assertEqual(_read_binary_file(m1), _read_binary_file(m2))
bin1 = _read_binary_file(m1)
bin2 = _read_binary_file(m2)

self.assertEqual(bin1, bin2)

def test_skipgram(self):
self._check_roundtrip_file_file(sg=1)
Expand Down

0 comments on commit 6009f0d

Please sign in to comment.