A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-July/046130.html below:

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

[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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4