1
0
mirror of https://github.com/django/django.git synced 2025-01-08 17:37:20 +00:00

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

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):