Skip to content

Allow doctest to find line number of __test__ strings if formatted as a triple quoted string. #69113

@bitdancer

Description

@bitdancer
BPO 24925
Nosy @jneb, @bitdancer, @jayvdb, @CuriousLearner, @nasirhjafri
PRs
  • bpo-24925: _find_lineno now finds doctest __test__ string line numbers #17553
  • Files
  • doctest_find__test__.patch
  • doctestfix.py: Simple addition for doctest
  • 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 = 'https://github.com/CuriousLearner'
    closed_at = None
    created_at = <Date 2015-08-24.16:20:04.640>
    labels = ['easy', '3.8', 'type-bug', '3.7']
    title = 'Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.'
    updated_at = <Date 2019-12-31.13:04:09.450>
    user = 'https://github.com/bitdancer'

    bugs.python.org fields:

    activity = <Date 2019-12-31.13:04:09.450>
    actor = 'jneb'
    assignee = 'CuriousLearner'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2015-08-24.16:20:04.640>
    creator = 'r.david.murray'
    dependencies = []
    files = ['40242', '47482']
    hgrepos = []
    issue_num = 24925
    keywords = ['patch', 'easy']
    message_count = 12.0
    messages = ['249060', '253317', '253319', '313757', '313758', '314454', '330253', '330460', '334200', '334211', '358193', '359114']
    nosy_count = 5.0
    nosy_names = ['jneb', 'r.david.murray', 'jayvdb', 'CuriousLearner', 'nasirhjafri']
    pr_nums = ['17553']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue24925'
    versions = ['Python 3.4', 'Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8']

    Linked PRs

    Metadata

    Metadata

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions