diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-05 18:15:23 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-05 18:15:23 (GMT) |
commit | 502b9e1fbbcb64bb53e9faef3d894b62eb2f6452 (patch) | |
tree | b6dfdfcfc485e5bbb4043dd793cd670f28fb0617 /Lib/test/test_logging.py | |
parent | 3dd990c53a8d5c24bc7f1555872b0892f0e7cdf8 (diff) | |
download | cpython-502b9e1fbbcb64bb53e9faef3d894b62eb2f6452.zip cpython-502b9e1fbbcb64bb53e9faef3d894b62eb2f6452.tar.gz cpython-502b9e1fbbcb64bb53e9faef3d894b62eb2f6452.tar.bz2 |
At least one Solaris box in the snake farm only supports "C" locale.
Adding try/except allows the test to pass
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 360d3ac..1e16def 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -29,7 +29,11 @@ import os, sys, string, struct, types, cPickle, cStringIO import socket, threading, time, locale import logging, logging.handlers, logging.config -locale.setlocale(locale.LC_ALL, '') +try: + locale.setlocale(locale.LC_ALL, '') +except ValueError: + # this happens on a Solaris box which only supports "C" locale + pass BANNER = "-- %-10s %-6s ---------------------------------------------------\n" |