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:
parent
3dd990c53a
commit
502b9e1fbb
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue