Skip to content

Commit

Permalink
Merge pull request #1417 from prakhar2b/post_0_13_2_model
Browse files Browse the repository at this point in the history
post_0_13_2* data cleanup in test_ldamodel.py
  • Loading branch information
menshikh-iv committed Jun 15, 2017
2 parents 09e16cd + b7616cb commit 5f9503c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gensim/test/test_ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from gensim import matutils, utils
from gensim.test import basetests


module_path = os.path.dirname(__file__) # needed because sample data files are located in the same folder
datapath = lambda fname: os.path.join(module_path, 'test_data', fname)

Expand Down Expand Up @@ -483,7 +482,7 @@ def testRandomStateBackwardCompatibility(self):
self.assertTrue(isinstance(i[1], six.string_types))

# save back the loaded model using a post-0.13.2 version of Gensim
post_0_13_2_fname = datapath('post_0_13_2_model')
post_0_13_2_fname = testfile('post_0_13_2_model')
model_pre_0_13_2.save(post_0_13_2_fname)

# load a model saved using a post-0.13.2 version of Gensim
Expand All @@ -494,7 +493,6 @@ def testRandomStateBackwardCompatibility(self):
self.assertTrue(isinstance(i[0], int))
self.assertTrue(isinstance(i[1], six.string_types))


#endclass TestLdaModel


Expand Down

0 comments on commit 5f9503c

Please sign in to comment.