[Python-checkins] python/dist/src/Lib/test regrtest.py,1.143,1.144 test_logging.py,1.11,1.12

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2003年7月22日 17:30:13 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv15659/Lib/test
Modified Files:
	regrtest.py test_logging.py 
Log Message:
locale-restoration code: Don't leave comparison to None implicit. For
all I know, the original locale may be '' (I don't think that's possible,
but ...), and if so we would certainly want to restore it.
Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.143
retrieving revision 1.144
diff -C2 -d -r1.143 -r1.144
*** regrtest.py	22 Jul 2003 18:35:58 -0000	1.143
--- regrtest.py	23 Jul 2003 00:30:11 -0000	1.144
***************
*** 332,336 ****
 os.unlink(filename)
 
! sys.exit(len(bad) > 0)
 
 
--- 332,336 ----
 os.unlink(filename)
 
! #sys.exit(len(bad) > 0)
 
 
Index: test_logging.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_logging.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** test_logging.py	23 Jul 2003 00:05:07 -0000	1.11
--- test_logging.py	23 Jul 2003 00:30:11 -0000	1.12
***************
*** 484,488 ****
 test_main_inner()
 finally:
! if original_locale:
 locale.setlocale(locale.LC_ALL, original_locale)
 
--- 484,488 ----
 test_main_inner()
 finally:
! if original_locale is not None:
 locale.setlocale(locale.LC_ALL, original_locale)
 

AltStyle によって変換されたページ (->オリジナル) /