summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_locale.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue 2522. locale.format now checks that it is passedR. David Murray2009-04-011-0/+14
| | | | | exactly one pattern, which avoids mysterious errors where it had seemed to fail to do localization.
* fix another nameBenjamin Peterson2009-03-261-1/+1
|
* fix incorrect auto-translation of TestSkipped -> unittest.SkipTestBenjamin Peterson2009-03-261-3/+3
|
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-5/+5
|
* Issue #1222: locale.format() bug when the thousands separator is a space ↵Antoine Pitrou2009-03-141-1/+77
| | | | character.
* disable some failing tests in test_locale due to a bug in locale.py.Antoine Pitrou2008-07-261-15/+14
| | | | this should fix the failures on the solaris buildbot.
* Fix more buildbot failures on test_locale.Antoine Pitrou2008-07-261-5/+10
|
* try to fix most buildbot failures on test_locale + add a debug output for ↵Antoine Pitrou2008-07-261-47/+69
| | | | the solaris buildbot
* convert test_locale to unittest, and add a mechanism to override localconv() ↵Antoine Pitrou2008-07-251-119/+262
| | | | results for further testing (#1864, #1222)
* #3303: fix crash with invalid Py_DECREF in strcoll().Georg Brandl2008-07-191-1/+10
|
* The locale "En" appears not to be valid on windows underi VisualStudio.2005. ↵Kristján Valur Jónsson2007-04-261-1/+1
| | | | Added "English" to the test_locale.py to make the testsuite pass for that build
* Fix test_locale for platforms without a default thousands separator.Georg Brandl2006-05-181-5/+8
|
* Patch #1180296: improve locale string formatting functionsGeorg Brandl2006-05-171-2/+23
|
* Work around test_locale failing on Solaris.Martin v. Löwis2005-12-301-3/+8
| | | | Will backport to 2.4.
* [ 1197218 ] test_locale fix on modern linuxAnthony Baxter2005-06-031-8/+10
| | | | | | | On more modern linuxes (and probably others) straight 'en_US' isn't a valid locale. Make the code try a couple of alternates. backport candidate
* Add a workaround for a problem that UTF-8 strings can be corruptedHye-Shik Chang2004-08-041-0/+35
| | | | | | | or broken by basic ctype functions in 4.4BSD descendants. This will be fixed in their future development branches but they'll keep the POSIX-incompatibility for their backward-compatiblities in near future.
* Enable some unittests on FreeBSD.Hye-Shik Chang2003-12-191-2/+5
| | | | | test__locale: add typical POSIX-style full locale names. test_locale: use en_US.US-ASCII on FreeBSD.
* Whitespace normalization.Tim Peters2003-02-191-1/+1
|
* Skip this test on MacOSX: the locale support is too minimal to makeJack Jansen2002-12-301-1/+3
| | | | it pass.
* Add getpreferredencoding. Support @euro modifiers. Fixes #554676.Martin v. Löwis2002-11-031-0/+2
| | | | The @euro part is backported to 2.2.3.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Whitespace normalization.Tim Peters2001-05-021-2/+2
|
* In order to make this test work on Windows, the test locale has to beGuido van Rossum2001-04-151-2/+7
| | | | | set to 'en' there -- Windows does not understand the 'en_US' locale. The test succeeds there.
* Patch #415777: new grouping strategy.Martin v. Löwis2001-04-131-0/+37
fixes bug #414940, and redoes the fix for #129417 in a different way. It also fixes a number of other problems with locale-specific formatting: If there is leading or trailing spaces, then no grouping should be applied in the spaces, and the total length of the string should not be changed due to grouping. Also added test case which works only if the en_US locale is available.