This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients bkabrda, chris.jerdonek, ncoghlan, nedbat, pitrou, serhiy.storchaka
Date 2012-07-29.16:41:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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?  ( 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:24chris.jerdoneksetrecipients: + chris.jerdonek, ncoghlan, pitrou, nedbat, serhiy.storchaka, bkabrda
2012-07-29 16:41:24chris.jerdoneksetmessageid: <>
2012-07-29 16:41:24chris.jerdoneklinkissue14803 messages
2012-07-29 16:41:24chris.jerdonekcreate