From 35225e2ade08ea32e36a994cd4ff90842c599e20 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 8 Aug 2016 16:50:48 -0400 Subject: [PATCH] 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'. --- tests/servers/test_basehttp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/servers/test_basehttp.py b/tests/servers/test_basehttp.py index 239016e635..cd9bcd2e86 100644 --- a/tests/servers/test_basehttp.py +++ b/tests/servers/test_basehttp.py @@ -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):