diff --git a/setup.py b/setup.py index 7a2fc152..be0315ae 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ url='http://pydub.com', packages=['pydub'], long_description=__doc__, + install_requires=['audioop-lts>=0.2.1; python_version>="3.13"'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: MIT License', diff --git a/test/test.py b/test/test.py index 1965761f..2da3d0fa 100644 --- a/test/test.py +++ b/test/test.py @@ -1086,7 +1086,7 @@ def test_from_file_clean_fail(self): tmp_wav_file.flush() self.assertRaises(CouldntDecodeError, AudioSegment.from_file, tmp_wav_file.name) files = os.listdir(tempfile.tempdir) - self.assertEquals(files, [os.path.basename(tmp_wav_file.name)]) + self.assertEqual(files, [os.path.basename(tmp_wav_file.name)]) if sys.platform == 'win32': os.remove(tmp_wav_file.name) @@ -1109,7 +1109,7 @@ def setUp(self): def test_split_on_silence_complete_silence(self): seg = AudioSegment.silent(5000) - self.assertEquals( split_on_silence(seg), [] ) + self.assertEqual( split_on_silence(seg), [] ) def test_split_on_silence_test1(self): self.assertEqual(