Commit ab3e63e4 authored by Denis Bilenko's avatar Denis Bilenko

remove unused code from test__pywsgi.py

--HG--
extra : transplant_source : %9CRz%85%94%E8%D8n%1D%CBu%1F%14%89r%5B%DB4P%E4
parent b76410f6
......@@ -22,7 +22,6 @@ monkey.patch_all(thread=False)
import cgi
import os
import urllib2
import sys
try:
from wsgiref.validate import validator
......@@ -688,19 +687,6 @@ class BadRequestTests(TestCase):
read_http(fd, code=(200, 400), version=None)
class HTTPRequest(urllib2.Request):
"""Hack urllib2.Request to support PUT and DELETE methods."""
def __init__(self, url, method="GET", data=None, headers={},
origin_req_host=None, unverifiable=False):
urllib2.Request.__init__(self, url, data, headers, origin_req_host, unverifiable)
self.url = url
self.method = method
def get_method(self):
return self.method
class ChunkedInputTests(TestCase):
dirt = ""
validator = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment