Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post_0_13_2* data cleanup in test_ldamodel.py #1417

Merged
merged 2 commits into from
Jun 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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