mirror of https://github.com/python/cpython
On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,
so just continue testing. Fixes #668787.
This commit is contained in:
parent
c9083b66bd
commit
8834009338
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue