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 makeSuite with loadTestsFromTestCase #1681

Merged

Conversation

franzpoeschel
Copy link
Contributor

@franzpoeschel franzpoeschel commented Oct 10, 2024

Removed with Python 3.13
Relevant for 0.16 releases due to #1675

def makeSuite(testCaseClass, prefix='test', sortUsing=util.three_way_cmp,
              suiteClass=suite.TestSuite):
    import warnings
    warnings.warn(
        "unittest.makeSuite() is deprecated and will be removed in Python 3.13. "
        "Please use unittest.TestLoader.loadTestsFromTestCase() instead.",
        DeprecationWarning, stacklevel=2
    )
    return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromTestCase(
        testCaseClass)

@franzpoeschel franzpoeschel added this to the 0.16.1 milestone Oct 10, 2024
@franzpoeschel franzpoeschel enabled auto-merge (squash) October 10, 2024 10:48
@franzpoeschel franzpoeschel merged commit 703c219 into openPMD:dev Oct 10, 2024
31 checks passed
franzpoeschel added a commit to ax3l/openPMD-api that referenced this pull request Oct 10, 2024
@ax3l ax3l self-assigned this Oct 10, 2024
@ax3l ax3l added the bug label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants