[Python-checkins] python/dist/src/Lib/test test_base64.py,1.3,1.4

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
2002年8月15日 15:14:26 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv13052/Lib/test
Modified Files:
	test_base64.py 
Log Message:
base64.decodestring('') should return '' instead of raising an
exception. The bug fix for SF #430849 wasn't quite right. This
closes SF bug #595671. I'll backport this to Python 2.2.
Index: test_base64.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_base64.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_base64.py	23 Jul 2002 19:03:45 -0000	1.3
--- test_base64.py	15 Aug 2002 22:14:24 -0000	1.4
***************
*** 45,54 ****
 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#0^&*();:<>,. []{}",
 reason = "long decodestring failed")
! try:
! base64.decodestring("")
! except binascii_error:
! pass
! else:
! self.fail("expected a binascii.Error on null decode request")
 
 def test_main():
--- 45,49 ----
 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#0^&*();:<>,. []{}",
 reason = "long decodestring failed")
! test_support.verify(base64.decodestring('') == '')
 
 def test_main():

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