Hi, 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.