diff options
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r-- | Lib/test/test_urllib2.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index f80148c..6438b4e 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -433,22 +433,8 @@ class HandlerTests(unittest.TestCase): if self.raise_on_endheaders: import socket raise socket.error() - def putrequest(self, method, selector): - self.method, self.selector = method, selector - def putheader(self, key, value): - self.req_headers.append((key, value)) - def endheaders(self): - if self.raise_on_endheaders: - import socket - raise socket.error() - def send(self, data): - self.data = data - def getreply(self): - return 200, "OK", {} def getresponse(self): return MockHTTPResponse(MockFile(), {}, 200, "OK") - def getfile(self): - return MockFile() h = urllib2.AbstractHTTPHandler() o = h.parent = MockOpener() |