mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
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
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ import os, sys, string, struct, types, cPickle, cStringIO
|
||||||
import socket, threading, time, locale
|
import socket, threading, time, locale
|
||||||
import logging, logging.handlers, logging.config
|
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"
|
BANNER = "-- %-10s %-6s ---------------------------------------------------\n"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue