[Python-checkins] python/dist/src/Lib/test test_logging.py,1.2,1.3
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Wed, 15 Jan 2003 15:43:04 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv3348
Modified Files:
test_logging.py
Log Message:
On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,
so just continue testing. Fixes #668787.
Index: test_logging.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_logging.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_logging.py 5 Jan 2003 18:15:23 -0000 1.2
--- test_logging.py 15 Jan 2003 23:43:02 -0000 1.3
***************
*** 32,37 ****
try:
locale.setlocale(locale.LC_ALL, '')
! except ValueError:
# this happens on a Solaris box which only supports "C" locale
pass
--- 32,38 ----
try:
locale.setlocale(locale.LC_ALL, '')
! 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