Skip to content

Commit 969b742

Browse files
committed
Bug fix in a test case
1 parent 033e11b commit 969b742

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_pysoundfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,9 @@ def test_read_into_out_over_end_should_return_shorter_data_and_write_into_out(
725725
out = np.ones((4, sf_stereo_r.channels), dtype='float64')
726726
sf_stereo_r.seek(-2, sf.SEEK_END)
727727
data = sf_stereo_r.read(out=out)
728-
assert np.all(data[:2] == out[:2])
729-
assert np.all(data[2:] == 1)
728+
assert np.all(data == out[:2])
729+
assert np.all(data == data_stereo[2:])
730+
assert np.all(out[2:] == 1)
730731
assert out.shape == (4, sf_stereo_r.channels)
731732
assert data.shape == (2, sf_stereo_r.channels)
732733

0 commit comments

Comments
 (0)