Nick Coghlan added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11978>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to