Commit 4b6e5970 authored by Jack Jansen's avatar Jack Jansen

On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,

so just continue testing. Fixes #668787.
parent 2d4e03a2
......@@ -31,8 +31,9 @@ import logging, logging.handlers, logging.config
try:
locale.setlocale(locale.LC_ALL, '')
except ValueError:
except (ValueError, locale.Error):
# this happens on a Solaris box which only supports "C" locale
# or a Mac OS X box which supports very little locale stuff at all
pass
BANNER = "-- %-10s %-6s ---------------------------------------------------\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment