[Python-checkins] python/dist/src/Lib/test test_logging.py,1.1,1.2

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Sun, 05 Jan 2003 10:15:25 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv13590/Lib/test

Modified Files:
	test_logging.py 
Log Message:
At least one Solaris box in the snake farm only supports "C" locale.
Adding try/except allows the test to pass


Index: test_logging.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_logging.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_logging.py	2 Jan 2003 14:56:39 -0000	1.1
--- test_logging.py	5 Jan 2003 18:15:23 -0000	1.2
***************
*** 30,34 ****
  import logging, logging.handlers, logging.config
  
! locale.setlocale(locale.LC_ALL, '')
  
  BANNER = "-- %-10s %-6s ---------------------------------------------------\n"
--- 30,38 ----
  import logging, logging.handlers, logging.config
  
! try:
!     locale.setlocale(locale.LC_ALL, '')
! except ValueError:
!     # this happens on a Solaris box which only supports "C" locale
!     pass
  
  BANNER = "-- %-10s %-6s ---------------------------------------------------\n"