Author serhiy.storchaka
Recipients Dmitry.Jemerov, barry-scott, loewis, ned.deily, r.david.murray, ronaldoussoren, serhiy.storchaka, vstinner
Date 2015-07-26.09:00:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437901245.77.0.225062996504.issue18378@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, I were testing on a Linux machine and forgot that results are OS depending.

I agree, that test should less depend on implementation details. As far as _locale._getdefaultlocale is defined only on Windows and "UTF-8" is not valid locale on Windows, I think there is no need to patch _locale for testing. But getlocale() and getpreferredencoding() should be consistent with getdefaultlocale() (and getlocale() is yet one way to test private function _parse_localename()). setlocale() should work with the result of getlocale() and getdefaultlocale(). Are following tests passed on OSX?
History
Date User Action Args
2015-07-26 09:00:45serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, barry-scott, ronaldoussoren, vstinner, ned.deily, r.david.murray, Dmitry.Jemerov
2015-07-26 09:00:45serhiy.storchakasetmessageid: <1437901245.77.0.225062996504.issue18378@psf.upfronthosting.co.za>
2015-07-26 09:00:45serhiy.storchakalinkissue18378 messages
2015-07-26 09:00:45serhiy.storchakacreate