mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Track change of begin() to _begin().
This commit is contained in:
parent
b6a9213930
commit
566fe9ef66
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ class FakeSocket:
|
||||||
body = "HTTP/1.1 200 Ok\r\n\r\nText"
|
body = "HTTP/1.1 200 Ok\r\n\r\nText"
|
||||||
sock = FakeSocket(body)
|
sock = FakeSocket(body)
|
||||||
resp = httplib.HTTPResponse(sock,1)
|
resp = httplib.HTTPResponse(sock,1)
|
||||||
resp.begin()
|
resp._begin()
|
||||||
print resp.read()
|
print resp.read()
|
||||||
resp.close()
|
resp.close()
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ body = "HTTP/1.1 400.100 Not Ok\r\n\r\nText"
|
||||||
sock = FakeSocket(body)
|
sock = FakeSocket(body)
|
||||||
resp = httplib.HTTPResponse(sock,1)
|
resp = httplib.HTTPResponse(sock,1)
|
||||||
try:
|
try:
|
||||||
resp.begin()
|
resp._begin()
|
||||||
except httplib.BadStatusLine:
|
except httplib.BadStatusLine:
|
||||||
print "BadStatusLine raised as expected"
|
print "BadStatusLine raised as expected"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue