mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -31,8 +31,9 @@ import logging, logging.handlers, logging.config
|
||||||
|
|
||||||
try:
|
try:
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
except ValueError:
|
except (ValueError, locale.Error):
|
||||||
# this happens on a Solaris box which only supports "C" locale
|
# 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
|
pass
|
||||||
|
|
||||||
BANNER = "-- %-10s %-6s ---------------------------------------------------\n"
|
BANNER = "-- %-10s %-6s ---------------------------------------------------\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue