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 r.david.murray
Recipients brian.curtin, lemburg, pitrou, r.david.murray
Date 2010-03-20.01:24:07
SpamBayes Score 8.9753016e-10
Marked as misclassified No
Message-id <1269048251.12.0.2438638281.issue7860@psf.upfronthosting.co.za>
In-reply-to
Content
I think it is actually pretty straightforward to write a *unit* test for this.  We just need to check that the logic works correctly given the expected presence or absence of the environment variables.  That doesn't test whether or not the right thing happens in the environment when you actually run a WOW64, but I don't think it is Python's responsibility to test that.  If Microsoft changes the API, platform will break and the tests won't notice, but I don't think there's anything we can do about that, since as you say the API is the only way to find out what to expect for results.

Test patch attached.  Brian, if you can confirm that this test fails before your patch and succeeds afterward, I will commit both patches.
History
Date User Action Args
2010-03-20 01:24:11r.david.murraysetrecipients: + r.david.murray, lemburg, pitrou, brian.curtin
2010-03-20 01:24:11r.david.murraysetmessageid: <1269048251.12.0.2438638281.issue7860@psf.upfronthosting.co.za>
2010-03-20 01:24:09r.david.murraylinkissue7860 messages
2010-03-20 01:24:08r.david.murraycreate