1- from numpy . testing import assert_array_equal
1+ import unittest
22from pathlib import Path
3- from pydub import AudioSegment
4- from old .vl8 .dsp import io
3+
54import numpy as np
65import tdir
7- import unittest
6+ from numpy .testing import assert_array_equal
7+ from pydub import AudioSegment
8+
9+ from old .vl8 .dsp import io
810
911TEST_FILE = Path (__file__ ).parent / "b-4098.wav"
1012DIR = Path (__file__ ).parent / "sources"
@@ -63,7 +65,7 @@ def test_two(self):
6365 d1 = infile .read_bytes ()
6466 d2 = outfile .read_bytes ()
6567 assert len (d1 ) == len (d2 )
66- errors = [a for a in enumerate (zip (d1 , d2 )) if a [1 ][0 ] != a [1 ][1 ]]
68+ errors = [a for a in enumerate (zip (d1 , d2 , strict = True )) if a [1 ][0 ] != a [1 ][1 ]]
6769 assert errors == [(4 , (134 , 133 ))]
6870 # AudioSegment changes one bit in the length from the sample
6971
@@ -77,7 +79,7 @@ def test_three(self):
7779 d1 = infile .read_bytes ()
7880 d2 = outfile .read_bytes ()
7981 assert len (d1 ) == len (d2 )
80- errors = [a for a in enumerate (zip (d1 , d2 )) if a [1 ][0 ] != a [1 ][1 ]]
82+ errors = [a for a in enumerate (zip (d1 , d2 , strict = True )) if a [1 ][0 ] != a [1 ][1 ]]
8183 assert errors == [(4 , (134 , 133 ))]
8284
8385 def NO_test_pydub_24 (self ):
0 commit comments