[Python-checkins] python/dist/src/Lib/test test_httplib.py,1.1,1.1.2.1

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
2002年7月02日 13:42:52 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv14132/Lib/test
Modified Files:
 Tag: release21-maint
	test_httplib.py 
Log Message:
Backport various bug fixes from trunk.
The 2.1 maintenance branch is now identical to the trunk through rev
1.54 of httplib.py.
Index: test_httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_httplib.py,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** test_httplib.py	13 Apr 2001 14:57:44 -0000	1.1
--- test_httplib.py	2 Jul 2002 20:42:50 -0000	1.1.2.1
***************
*** 17,21 ****
 sock = FakeSocket(body)
 resp = httplib.HTTPResponse(sock,1)
! resp.begin()
 print resp.read()
 resp.close()
--- 17,21 ----
 sock = FakeSocket(body)
 resp = httplib.HTTPResponse(sock,1)
! resp._begin()
 print resp.read()
 resp.close()
***************
*** 25,29 ****
 resp = httplib.HTTPResponse(sock,1)
 try:
! resp.begin()
 except httplib.BadStatusLine:
 print "BadStatusLine raised as expected"
--- 25,29 ----
 resp = httplib.HTTPResponse(sock,1)
 try:
! resp._begin()
 except httplib.BadStatusLine:
 print "BadStatusLine raised as expected"

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