Message166785
Okay, then in the interest of understanding why various alternatives fail, I'll just throw out the suggestion or question that I had in mind because I don't see it mentioned above or on the web page.
Why wouldn't it work to define an alias or script that invokes the desired "python -m ...", and then when you call your test suite (using a potentially different "-m ..."), you set sys.executable to that script so that subprocesses in your code under test will invoke it? (coverage.py could do all of this under the hood so that the user need not be aware of it.) Or would this work just fine, but that it's an example of the kind of hack that you're trying to avoid? |
|
Date |
User |
Action |
Args |
2012-07-29 16:41:24 | chris.jerdonek | set | recipients:
+ chris.jerdonek, ncoghlan, pitrou, nedbat, serhiy.storchaka, bkabrda |
2012-07-29 16:41:24 | chris.jerdonek | set | messageid: <1343580084.9.0.440224123075.issue14803@psf.upfronthosting.co.za> |
2012-07-29 16:41:24 | chris.jerdonek | link | issue14803 messages |
2012-07-29 16:41:24 | chris.jerdonek | create | |
|