homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: trace misreports "missing" lines
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: belopolsky Nosy List: Arfrever, belopolsky, eli.bendersky, terry.reedy
Priority: normal Keywords: patch

Created on 2010年09月24日 02:55 by belopolsky, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
traceme.py belopolsky, 2010年09月24日 02:55
issue9936.diff belopolsky, 2010年09月24日 03:00 review
issue9936a.diff belopolsky, 2010年09月24日 16:12 Patch with unit tests review
Messages (5)
msg117257 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010年09月24日 02:55
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.
msg117258 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010年09月24日 03:00
I am attaching a patch that fixes this issue. Need to add a unit test.
msg117321 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010年09月24日 18:15
Fixed in r84994, r84995 (3.1) and r84996 (2.7).
msg117430 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2010年09月26日 21:47
test_issue9936 fails on 2.7 branch.
See e.g. http://www.python.org/dev/buildbot/2.7.stable/builders/sparc%20solaris10%20gcc%202.7/builds/268/steps/test/logs/stdio 
msg117431 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010年09月26日 23:38
On Sun, Sep 26, 2010 at 5:47 PM, Arfrever Frehtes Taifersar Arahesis
<report@bugs.python.org> wrote:
..
>
> test_issue9936 fails on 2.7 branch.
Should be fixed by r85020. Thanks.
History
Date User Action Args
2022年04月11日 14:57:06adminsetgithub: 54145
2010年10月05日 16:51:11belopolskysetstatus: open -> closed
2010年09月26日 23:38:17belopolskysetmessages: + msg117431
2010年09月26日 21:47:23Arfreversetnosy: + Arfrever
messages: + msg117430
2010年09月24日 18:15:49belopolskysetresolution: fixed
messages: + msg117321
stage: commit review -> resolved
2010年09月24日 16:12:57belopolskysetfiles: + issue9936a.diff
stage: test needed -> commit review
2010年09月24日 03:16:33belopolskysetversions: + Python 3.1, Python 2.7
2010年09月24日 03:02:48belopolskysetnosy: + terry.reedy, eli.bendersky
2010年09月24日 03:00:02belopolskysetfiles: + issue9936.diff

assignee: belopolsky
components: + Library (Lib)
versions: + Python 3.2
keywords: + patch
type: behavior
messages: + msg117258
stage: test needed
2010年09月24日 02:55:53belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /