From 8c2955455b156918a96e8ba86005e73b021b2238 Mon Sep 17 00:00:00 2001 From: taconi Date: Tue, 15 Oct 2024 17:47:59 -0300 Subject: [PATCH] Adding audioop-lts for python >=3.13 --- setup.py | 1 + test/test.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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(