Skip to content

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 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