Skip to content

Commit

Permalink
TST: Fix TypeError arising only when using a sparse matrix in Python 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Riddell committed Nov 1, 2014
1 parent ea5f8c2 commit 2abe09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lda/tests/test_lda_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestLDASparse(oslotest.base.BaseTestCase):
def setUpClass(cls):
test_dir = os.path.dirname(__file__)
reuters_ldac_fn = os.path.join(test_dir, 'reuters.ldac')
cls.dtm = scipy.sparse.csr_matrix(lda.utils.ldac2dtm(open(reuters_ldac_fn), offset=0))
cls.dtm = scipy.sparse.csr_matrix(lda.utils.ldac2dtm(open(reuters_ldac_fn), offset=0)).astype(np.int64)
cls.n_iter = n_iter = 1
cls.n_topics = n_topics = 10
cls.random_seed = random_seed = 1
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = py34,py27,pep8
envlist = py34,py33,py27,pep8
skipsdist = True

[testenv]
Expand Down

0 comments on commit 2abe09a

Please sign in to comment.