Skip to content

Avoid usage of unittest.makeSuite, removed from Python 3.13 #159

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hroncok
Copy link

@hroncok hroncok commented Mar 13, 2024

Patch generated by:

sed -i 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/g' $(grep -rl makeSuite)

Patch generated by:

    sed -i 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/g' $(grep -rl makeSuite)
@stefankoegl stefankoegl requested a review from Copilot August 8, 2025 06:36
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the deprecated unittest.makeSuite method to use unittest.defaultTestLoader.loadTestsFromTestCase to maintain Python 3.13 compatibility, as makeSuite was removed in that version.

  • Replaces all instances of unittest.makeSuite with unittest.defaultTestLoader.loadTestsFromTestCase
  • Ensures test suite construction continues to work in Python 3.13+

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests.py Updates 12 test case additions in the get_suite function to use the new test loader method
ext_tests.py Updates 1 test case addition in the get_suite function to use the new test loader method

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