summaryrefslogtreecommitdiff
path: root/Lib/test/test_locale.py
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2003-12-19 01:16:03 +0000
committerHye-Shik Chang <hyeshik@gmail.com>2003-12-19 01:16:03 +0000
commit2c370b85de84139c2c05b6997c3bfa8cca5641ba (patch)
tree4192acb311552209380c527dade03011ce9ea6f0 /Lib/test/test_locale.py
parent8a8eb995017d0c5b1efafd2c9776bd3ec4121721 (diff)
downloadcpython-2c370b85de84139c2c05b6997c3bfa8cca5641ba.tar.gz
Enable some unittests on FreeBSD.
test__locale: add typical POSIX-style full locale names. test_locale: use en_US.US-ASCII on FreeBSD.
Diffstat (limited to 'Lib/test/test_locale.py')
-rw-r--r--Lib/test/test_locale.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py
index 87c66e9edf..9187c9e84b 100644
--- a/Lib/test/test_locale.py
+++ b/Lib/test/test_locale.py
@@ -6,9 +6,12 @@ if sys.platform == 'darwin':
raise TestSkipped("Locale support on MacOSX is minimal and cannot be tested")
oldlocale = locale.setlocale(locale.LC_NUMERIC)
-tloc = "en_US"
-if sys.platform[:3] == "win":
+if sys.platform.startswith("win"):
tloc = "en"
+elif sys.platform.startswith("freebsd"):
+ tloc = "en_US.US-ASCII"
+else:
+ tloc = "en_US"
try:
locale.setlocale(locale.LC_NUMERIC, tloc)