Skip to content

tests: replace deprecated failIf/failUnless with assertFalse/assertTrue#35

Open
thegushi wants to merge 1 commit into
jaredmauch:mainfrom
thegushi:fix/deprecated-assertions
Open

tests: replace deprecated failIf/failUnless with assertFalse/assertTrue#35
thegushi wants to merge 1 commit into
jaredmauch:mainfrom
thegushi:fix/deprecated-assertions

Conversation

@thegushi
Copy link
Copy Markdown
Collaborator

failIf() and failUnless() are deprecated aliases for assertFalse() and assertTrue() that were removed in Python 3.12. This replaces all occurrences in the test suite.

Files changed:

  • tests/test_bounces.py
  • tests/test_handlers.py
  • tests/test_lockfile.py
  • tests/test_membership.py
  • tests/test_message.py

failIf() and failUnless() are deprecated aliases removed in Python 3.12.
Replace all occurrences with assertFalse() and assertTrue() respectively.
@thegushi thegushi mentioned this pull request May 21, 2026
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.

1 participant