Skip to content

Conversation

@mth4saurabh
Copy link

@mth4saurabh mth4saurabh commented Apr 30, 2025

allow users to extend the doctest functionality by providing their own test case and runner implementations, default behavior of DocTestSuite and DocFileSuite has not been changed

  • Added new parameters to DocTestSuite and DocFileSuite:
    • test_case: Optional parameter to specify a custom DocTestCase/DocFileCase class
    • runner: Optional parameter to specify a custom DocTestRunner class
  • Added test cases for custom test case and runner classes
  • Updated documentation in Doc/library/doctest.rst to reflect these changes

📚 Documentation preview 📚: https://cpython-previews--133203.org.readthedocs.build/

@bedevere-app
Copy link

bedevere-app bot commented Apr 30, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Apr 30, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@mth4saurabh mth4saurabh force-pushed the gh-43657-pass-test-case-runner-doctest branch 6 times, most recently from b4fe2a2 to 7677489 Compare May 2, 2025 13:05
@mth4saurabh mth4saurabh force-pushed the gh-43657-pass-test-case-runner-doctest branch from 7677489 to 505248c Compare May 2, 2025 13:06
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.

1 participant