Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-43657: Add support for custom test case and runner in both DocTestSuite and DocFileSuite#133203

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mth4saurabh wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
frommth4saurabh:gh-43657-pass-test-case-runner-doctest

Conversation

mth4saurabh
Copy link

@mth4saurabhmth4saurabh commentedApr 30, 2025
edited by github-actionsbot
Loading

allow users to extend the doctest functionality by providing their own test case and runner implementations, default behavior ofDocTestSuite andDocFileSuite hasnot been changed

  • Added new parameters toDocTestSuite andDocFileSuite:
    • test_case: Optional parameter to specify a customDocTestCase/DocFileCase class
    • runner: Optional parameter to specify a customDocTestRunner 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

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

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

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

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

@mth4saurabhmth4saurabhforce-pushed thegh-43657-pass-test-case-runner-doctest branch 6 times, most recently fromb4fe2a2 to7677489CompareMay 2, 2025 13:05
@mth4saurabhmth4saurabhforce-pushed thegh-43657-pass-test-case-runner-doctest branch from7677489 to505248cCompareMay 2, 2025 13:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@mth4saurabh

[8]ページ先頭

©2009-2025 Movatter.jp