diff options
-rw-r--r-- | Lib/test/test_logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 1e16def..4e74394 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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" |