[Python-checkins] python/dist/src/Lib/test test__locale.py, 1.3, 1.4 test_locale.py, 1.7, 1.8

perky at users.sourceforge.net perky at users.sourceforge.net
Thu Dec 18 20:16:05 EST 2003


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

Modified Files:
	test__locale.py test_locale.py 
Log Message:
Enable some unittests on FreeBSD.

test__locale: add typical POSIX-style full locale names.
test_locale: use en_US.US-ASCII on FreeBSD.


Index: test__locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test__locale.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test__locale.py	10 Sep 2003 20:19:54 -0000	1.3
--- test__locale.py	19 Dec 2003 01:16:03 -0000	1.4
***************
*** 11,15 ****
      'de_DE', 'sr_YU', 'br_FR', 'nl_BE', 'sv_FI', 'pl_PL', 'fr_CA', 'fo_FO',
      'bs_BA', 'fr_LU', 'kl_GL', 'fa_IR', 'de_BE', 'sv_SE', 'it_CH', 'uk_UA',
!     'eu_ES', 'vi_VN', 'af_ZA', 'nb_NO', 'en_DK', 'tg_TJ']
  
  saw_locale = 0
--- 11,16 ----
      'de_DE', 'sr_YU', 'br_FR', 'nl_BE', 'sv_FI', 'pl_PL', 'fr_CA', 'fo_FO',
      'bs_BA', 'fr_LU', 'kl_GL', 'fa_IR', 'de_BE', 'sv_SE', 'it_CH', 'uk_UA',
!     'eu_ES', 'vi_VN', 'af_ZA', 'nb_NO', 'en_DK', 'tg_TJ',
!     'es_ES.ISO8859-1', 'fr_FR.ISO8859-15', 'ru_RU.KOI8-R', 'ko_KR.eucKR']
  
  saw_locale = 0

Index: test_locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_locale.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_locale.py	19 Feb 2003 02:35:05 -0000	1.7
--- test_locale.py	19 Dec 2003 01:16:03 -0000	1.8
***************
*** 7,13 ****
  oldlocale = locale.setlocale(locale.LC_NUMERIC)
  
! tloc = "en_US"
! if sys.platform[:3] == "win":
      tloc = "en"
  
  try:
--- 7,16 ----
  oldlocale = locale.setlocale(locale.LC_NUMERIC)
  
! if sys.platform.startswith("win"):
      tloc = "en"
+ elif sys.platform.startswith("freebsd"):
+     tloc = "en_US.US-ASCII"
+ else:
+     tloc = "en_US"
  
  try:





More information about the Python-checkins mailing list