Message160657
| Author | nedbat |
|---|---|
| Recipients | ncoghlan, nedbat, pitrou, serhiy.storchaka |
| Date | 2012-05-14.19:02:52 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1337022173.4.0.749900428382.issue14803@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The difficulty that coverage faces is not measuring python programs started from the command line like this, you can use "coverage run myprog.py" or "python -m coverage run myprog.py". The difficulty is when there are subprocesses running python programs. Read http://nedbatchelder.com/code/coverage/subprocess.html for the two current hacks used to invoke coverage on subprocesses. If -C is implemented, it should have a PYTHONRUNFIRST environment variable (or the like) to make these hacks unnecessary. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-05-14 19:02:53 | nedbat | set | recipients: + nedbat, ncoghlan, pitrou, serhiy.storchaka |
| 2012-05-14 19:02:53 | nedbat | set | messageid: <1337022173.4.0.749900428382.issue14803@psf.upfronthosting.co.za> |
| 2012-05-14 19:02:52 | nedbat | link | issue14803 messages |
| 2012-05-14 19:02:52 | nedbat | create | |