Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failures on python 3.12 #790

Open
xiota opened this issue Apr 27, 2024 · 2 comments
Open

test failures on python 3.12 #790

xiota opened this issue Apr 27, 2024 · 2 comments

Comments

@xiota
Copy link

xiota commented Apr 27, 2024

/home/main-builder/pkgwork/src/pydub-0.25.1/test/pydub/utils.py:300: SyntaxWarning: invalid escape sequence '\('
  m = re.match('([su]([0-9]{1,2})p?) \(([0-9]{1,2}) bit\)$', token)
/home/main-builder/pkgwork/src/pydub-0.25.1/test/pydub/utils.py:301: SyntaxWarning: invalid escape sequence '\('
  m2 = re.match('([su]([0-9]{1,2})p?)( \(default\))?$', token)
/home/main-builder/pkgwork/src/pydub-0.25.1/test/pydub/utils.py:310: SyntaxWarning: invalid escape sequence '\('
  elif re.match('(flt)p?( \(default\))?$', token):
/home/main-builder/pkgwork/src/pydub-0.25.1/test/pydub/utils.py:314: SyntaxWarning: invalid escape sequence '\('
  elif re.match('(dbl)p?( \(default\))?$', token):
........................................E....................................................................E...
======================================================================
ERROR: test_from_file_clean_fail (__main__.AudioSegmentTests.test_from_file_clean_fail)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/main-builder/pkgwork/src/pydub-0.25.1/test/test.py", line 1089, in test_from_file_clean_fail
    self.assertEquals(files, [os.path.basename(tmp_wav_file.name)])
    ^^^^^^^^^^^^^^^^^
AttributeError: 'AudioSegmentTests' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

======================================================================
ERROR: test_split_on_silence_complete_silence (__main__.SilenceTests.test_split_on_silence_complete_silence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/main-builder/pkgwork/src/pydub-0.25.1/test/test.py", line 1112, in test_split_on_silence_complete_silence
    self.assertEquals( split_on_silence(seg), [] )
    ^^^^^^^^^^^^^^^^^
AttributeError: 'SilenceTests' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

----------------------------------------------------------------------
Ran 113 tests in 12.501s
@unitof
Copy link

unitof commented Apr 29, 2024

This was fixed in 5658398 but doesn't seem to have made it to a release.

@xiota
Copy link
Author

xiota commented Apr 29, 2024

I see a large number of pull requests and issues... is there a fork that addresses the major problems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants