Skip to content

doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False #72436

@cpitclaudel

Description

@cpitclaudel
BPO 28249
Nosy @cpitclaudel, @tirkarthi, @sobolevn, @kumaraditya303
PRs
  • bpo-28249: fix lineno location for empty DocTest instances #30498
  • Files
  • example.py
  • 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 2016-09-22.15:32:20.468>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False'
    updated_at = <Date 2022-01-09.11:39:50.113>
    user = 'https://github.com/cpitclaudel'

    bugs.python.org fields:

    activity = <Date 2022-01-09.11:39:50.113>
    actor = 'kumaraditya'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-09-22.15:32:20.468>
    creator = 'cpitclaudel'
    dependencies = []
    files = ['44786']
    hgrepos = []
    issue_num = 28249
    keywords = ['patch']
    message_count = 1.0
    messages = ['277230']
    nosy_count = 4.0
    nosy_names = ['cpitclaudel', 'xtreak', 'sobolevn', 'kumaraditya']
    pr_nums = ['30498']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28249'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions