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

Replace deprecated assertRaisesRegexp with assertRaisesRegex #335

Merged

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Jun 4, 2022

I missed this in #319.

  • Python 3.1: assertRaisesRegexp was added (docs)
  • Python 3.2: Renamed to assertRaisesRegex and assertRaisesRegexp deprecated (docs)
  • Python 3.12: assertRaisesRegexp is planned for removal (PR) (originally planned for 3.11 but postponed)

Also:

  • Enable warnings in tests, so there's visibility for these (for example)
  • Fix "DeprecationWarning: Only valid in 1.8.1 and earlier. Use skipTest instead."

@cjwatson cjwatson merged commit df86fcb into testing-cabal:master Jun 6, 2022
@hugovk hugovk deleted the fix-assertRaisesRegexp-deprecation branch June 6, 2022 11:12
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

Successfully merging this pull request may close these issues.

2 participants