Skip to content

Commit

Permalink
Fix test_batch_utils sparse.csr
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshidaa authored Aug 13, 2024
1 parent 190dd20 commit 8bd7d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_batch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def test_combine_csv_batches(tmpdir):

def test_combine_sparse_matrix_batches(tmpdir):
filename1 = str(tmpdir / "temp.0.npz")
sparse.save_npz(filename1, sparse.csr_array([0, 0, 0, 1]), compressed=True)
sparse.save_npz(filename1, sparse.csr_array([[0, 0, 0, 1]]), compressed=True)
filename2 = str(tmpdir / "temp.1.npz")
sparse.save_npz(filename2, sparse.csr_array([1, 1, 1, 0]), compressed=True)
sparse.save_npz(filename2, sparse.csr_array([[1, 1, 1, 0]]), compressed=True)
filename = str(tmpdir / "temp.npz")

assert os.path.exists(filename1)
Expand Down

0 comments on commit 8bd7d46

Please sign in to comment.