Trace function changed warning when using threads · Issue #164 · nedbat/coveragepy (original) (raw)

Originally reported by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren)


When I run coverage.py on the following script I get a message about measurements being wrong:

$ $ coverage run script.py
Hello
Coverage.py warning: Trace function changed, measurement is likely wrong: None

The script:

import threading
import time

class MyThread (threading.Thread):
    def run(self):
        print "Hello"


thr = MyThread()
thr.start()
thr.join()

The script does have full coverage in the report though.

This is using python 2.7.2 on MacOSX 10.7.2 and coverage.py 3.5.1. Python was installed using the binary installer on the python.org website.