Skip to content

trace misreports "missing" lines #54145

Closed

Description

@abalkin
BPO 9936
Nosy @terryjreedy, @abalkin
Files
  • traceme.py
  • issue9936.diff
  • issue9936a.diff: Patch with unit tests
  • 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/abalkin'
    closed_at = <Date 2010-10-05.16:51:11.286>
    created_at = <Date 2010-09-24.02:55:53.777>
    labels = ['type-bug', 'library']
    title = 'trace misreports "missing" lines'
    updated_at = <Date 2010-10-05.16:51:11.285>
    user = 'https://github.com/abalkin'

    bugs.python.org fields:

    activity = <Date 2010-10-05.16:51:11.285>
    actor = 'belopolsky'
    assignee = 'belopolsky'
    closed = True
    closed_date = <Date 2010-10-05.16:51:11.286>
    closer = 'belopolsky'
    components = ['Library (Lib)']
    creation = <Date 2010-09-24.02:55:53.777>
    creator = 'belopolsky'
    dependencies = []
    files = ['18990', '18991', '18998']
    hgrepos = []
    issue_num = 9936
    keywords = ['patch']
    message_count = 5.0
    messages = ['117257', '117258', '117321', '117430', '117431']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'belopolsky', 'Arfrever', 'eli.bendersky']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue9936'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

    Activity

    1. abalkin commented on Sep 24, 2010

      @abalkin
      MemberAuthor

      With the attached traceme.py,

      $ python -m trace -m -s -c  traceme.py
      lines   cov%   module   (path)
          2    50%   traceme   (traceme.py)
      $ cat traceme.cover 
             x = (1,
      >>>>>>      2,
          1:      3)

      This is wrong because all lines in traceme.py are executed.

    2. abalkin commented on Sep 24, 2010

      @abalkin
      MemberAuthor

      I am attaching a patch that fixes this issue. Need to add a unit test.

    3. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Sep 24, 2010
    4. self-assigned this
      on Sep 24, 2010
    5. abalkin commented on Sep 24, 2010

      @abalkin
      MemberAuthor

      Fixed in r84994, r84995 (3.1) and r84996 (2.7).

    6. Arfrever commented on Sep 26, 2010

      Arfrevermannequin
      Mannequin
    7. abalkin commented on Sep 26, 2010

      @abalkin
      MemberAuthor

      On Sun, Sep 26, 2010 at 5:47 PM, Arfrever Frehtes Taifersar Arahesis
      <[email protected]> wrote:
      ..

      test_issue9936 fails on 2.7 branch.

      Should be fixed by r85020. Thanks.

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard 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