Antoine Pitrou
36897e1ff9
disable some failing tests in test_locale due to a bug in locale.py.
...
this should fix the failures on the solaris buildbot.
2008-07-26 13:49:13 +00:00
Antoine Pitrou
6327e8482e
Fix more buildbot failures on test_locale.
2008-07-26 11:56:37 +00:00
Antoine Pitrou
524f4135dc
try to fix most buildbot failures on test_locale + add a debug output for the solaris buildbot
2008-07-26 10:29:43 +00:00
Antoine Pitrou
ba54edadb3
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing ( #1864 , #1222 )
2008-07-25 20:40:19 +00:00
Georg Brandl
278fc50c07
#3303 : fix crash with invalid Py_DECREF in strcoll().
2008-07-19 12:46:12 +00:00
Kristján Valur Jónsson
94b706be35
The locale "En" appears not to be valid on windows underi VisualStudio.2005. Added "English" to the test_locale.py to make the testsuite pass for that build
2007-04-26 13:44:16 +00:00
Georg Brandl
fad65594ba
Fix test_locale for platforms without a default thousands separator.
2006-05-18 06:33:27 +00:00
Georg Brandl
b89316fdbf
Patch #1180296 : improve locale string formatting functions
2006-05-17 15:51:16 +00:00
Martin v. Löwis
4cfa136680
Work around test_locale failing on Solaris.
...
Will backport to 2.4.
2005-12-30 12:51:45 +00:00
Anthony Baxter
451ae18751
[ 1197218 ] test_locale fix on modern linux
...
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
2005-06-03 15:04:15 +00:00
Hye-Shik Chang
b5047fd019
Add a workaround for a problem that UTF-8 strings can be corrupted
...
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.
2004-08-04 06:33:51 +00:00
Hye-Shik Chang
8d2e08dcdf
Enable some unittests on FreeBSD.
...
test__locale: add typical POSIX-style full locale names.
test_locale: use en_US.US-ASCII on FreeBSD.
2003-12-19 01:16:03 +00:00
Tim Peters
f2715e0764
Whitespace normalization.
2003-02-19 02:35:07 +00:00
Jack Jansen
06f0cef1ca
Skip this test on MacOSX: the locale support is too minimal to make
...
it pass.
2002-12-30 23:02:55 +00:00
Martin v. Löwis
f0a4668e6f
Add getpreferredencoding. Support @euro modifiers. Fixes #554676 .
...
The @euro part is backported to 2.2.3.
2002-11-03 17:20:12 +00:00
Barry Warsaw
04f357cffe
Get rid of relative imports in all unittests. Now anything that
...
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. :)
2002-07-23 19:04:11 +00:00
Tim Peters
8ae2df483c
Whitespace normalization.
2001-05-02 05:54:44 +00:00
Guido van Rossum
fc349862d4
In order to make this test work on Windows, the test locale has to be
...
set to 'en' there -- Windows does not understand the 'en_US' locale.
The test succeeds there.
2001-04-15 13:15:56 +00:00
Martin v. Löwis
88ad12afac
Patch #415777 : new grouping strategy.
...
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.
2001-04-13 08:09:50 +00:00