From: Neal Norwitz Date: Sun, 5 Jan 2003 18:15:23 +0000 (+0000) Subject: At least one Solaris box in the snake farm only supports "C" locale. X-Git-Tag: v2.3c1~2583 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=502b9e1fbbcb64bb53e9faef3d894b62eb2f6452;p=thirdparty%2FPython%2Fcpython.git At least one Solaris box in the snake farm only supports "C" locale. Adding try/except allows the test to pass --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 360d3ac22548..1e16def9a7ce 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"