[Python-Dev] What is test__locale supposed to test, anyhow?

"Martin v. Löwis" martin at v.loewis.de
Wed Jul 14 00:11:36 CEST 2004


Nick Bastin wrote:
> test__locale, as written, tests that the data we get from nl_langinfo() 
> matches the data acquired from localeconv(), but it doesn't actually 
> make sure that any part of this data is correct.  Is this intentional? 

Yes, see python.org/sf/798145. The test checks that the emulated
nl_langinfo matches the emulated localeconv for the LC_NUMERIC category.

These days, we are not supposed to emulate LC_NUMERIC anymore, so the
test is somewhat pointless now.

Checking for the actual data will indeed trigger alot of 'failures'.
Some of these might be debatable, because it might not be clear that
the reference data you compare against is universally agreed upon
among the people who live in that locale.

Regards,
Martin



More information about the Python-Dev mailing list