Allow passing DocTestRunner and DocTestCase in doctest

Open
#43,657 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing-qa

Research direction

Start by reviewing the linked PR gh-133203 and the attached doctest-configuration.diff, doctest-configuration-1.diff, and test.patch files. Then inspect the doctest DocTestSuite, DocTestRunner, and DocTestCase entry points; done means the requested runner and case customization is supported with coverage for the behavior described by the patches.

Written by the indexing model from the issue text.

Description

stdlib tests type-feature
BPO 1521051
Nosy @asvetlov, @freakboy3742, @cjerdonek, @MaxwellDupre
Files
  • doctest-configuration.diff: Patch to allow extra customization of DocTestSuite
  • doctest-configuration-1.diff
  • test.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2006-07-12.08:47:04.000>
    labels = ['easy', 'type-feature', 'library']
    title = 'Allow passing DocTestRunner and DocTestCase in doctest'
    updated_at = <Date 2022-01-21.17:35:46.293>
    user = 'https://bugs.python.org/freakboy'
    

    bugs.python.org fields:

    activity = <Date 2022-01-21.17:35:46.293>
    actor = 'mikecmcleod'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2006-07-12.08:47:04.000>
    creator = 'freakboy'
    dependencies = []
    files = ['7393', '29714', '31059']
    hgrepos = []
    issue_num = 1521051
    keywords = ['patch', 'easy']
    message_count = 9.0
    messages = ['50676', '50677', '116170', '116222', '170529', '186204', '186577', '193803', '411160']
    nosy_count = 8.0
    nosy_names = ['collinwinter', 'freakboy', 'asvetlov', 'freakboy3742', 'chris.jerdonek', 'Kostyantyn.Leschenko', 'jasonamyers', 'mikecmcleod']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'test needed'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1521051'
    versions = ['Python 3.4']
    

    Linked PRs
    • gh-133203
    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.