Message291219
As a starting point, I'd suggest looking at what can be achieved without making any changes to CPython or its test suite:
1. Set COVERAGE_PROCESS_START in the environment where the tests are being run
2. Inject a sitecustomize.py file into Lib (and add `Lib/sitecustomize.py` to `.gitignore`)
There are cases that won't cover (like subprocesses with a custom environment), but it will provide a starting point for the tests that just pass the current environment through, and will also provide a way to notify test.support.script_helper of the expected value of COVERAGE_PROCESS_START in the future. |
|
Date |
User |
Action |
Args |
2017-04-06 09:26:01 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, nedbat, jaysinh.shukla |
2017-04-06 09:26:01 | ncoghlan | set | messageid: <1491470761.91.0.557073284246.issue11978@psf.upfronthosting.co.za> |
2017-04-06 09:26:01 | ncoghlan | link | issue11978 messages |
2017-04-06 09:26:01 | ncoghlan | create | |
|