Refs #27025 -- Fixed a servers test on Python 3.6.

After https://hg.python.org/cpython/rev/4ea79767ff75/,
test_strips_underscore_headers fails with:
'Stub' object has no attribute 'sendall'.
This commit is contained in:
Tim Graham 2016-08-08 16:50:48 -04:00 committed by GitHub
parent a6baada7bd
commit 35225e2ade
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ class Stub(object):
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
def sendall(self, data):
self.makefile('wb').write(data)
class WSGIRequestHandlerTestCase(SimpleTestCase):