At least one Solaris box in the snake farm only supports "C" locale.

Adding try/except allows the test to pass
This commit is contained in:
Neal Norwitz 2003-01-05 18:15:23 +00:00
parent 3dd990c53a
commit 502b9e1fbb
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ import os, sys, string, struct, types, cPickle, cStringIO
import socket, threading, time, locale
import logging, logging.handlers, logging.config
try:
locale.setlocale(locale.LC_ALL, '')
except ValueError:
# this happens on a Solaris box which only supports "C" locale
pass
BANNER = "-- %-10s %-6s ---------------------------------------------------\n"