From 502b9e1fbbcb64bb53e9faef3d894b62eb2f6452 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 5 Jan 2003 18:15:23 +0000 Subject: [PATCH] At least one Solaris box in the snake farm only supports "C" locale. Adding try/except allows the test to pass --- Lib/test/test_logging.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 360d3ac2254..1e16def9a7c 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"