[New-bugs-announce] [issue1705] trace module does not annotate global statement

Wummel report at bugs.python.org
Fri Dec 28 11:47:26 CET 2007

New submission from Wummel:


the trace module does not properly count the global statement. So
coverage tests of functions that use the global statement always file.

To reproduce write a simple function using the global statement and
store it in "mytest.py" (which is attached). Then run "python -m trace
-c mytest.py".
You'll see that the global statement line will not be covered (ie. there
is no "1:" at the beginning of the line).

I tested with Python 2.5 and 2.4.

components: Extension Modules
files: mytest.py
messages: 59021
nosy: calvin
severity: normal
status: open
title: trace module does not annotate global statement
type: behavior
Added file: http://bugs.python.org/file9033/mytest.py

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mytest.py
Type: text/x-python
Size: 155 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071228/63b6dea8/attachment.py 

More information about the New-bugs-announce mailing list