Skip to content

Commit

Permalink
Move get_random_state to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
tmylk authored Jan 3, 2017
1 parent 55c2fef commit 946fc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gensim/test/test_ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from gensim.corpora import mmcorpus, Dictionary
from gensim.models import ldamodel, ldamulticore
from gensim import matutils
from gensim import matutils, utils
from gensim.test import basetests


Expand Down Expand Up @@ -53,7 +53,7 @@ def testfile(test_fname=''):
def testRandomState():
testcases = [np.random.seed(0), None, np.random.RandomState(0), 0]
for testcase in testcases:
assert(isinstance(ldamodel.get_random_state(testcase), np.random.RandomState))
assert(isinstance(utils.get_random_state(testcase), np.random.RandomState))


class TestLdaModel(unittest.TestCase, basetests.TestBaseTopicModel):
Expand Down

0 comments on commit 946fc26

Please sign in to comment.