summaryrefslogtreecommitdiff
path: root/tests/servers/test_basehttp.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-08-08 16:50:48 -0400
committerGitHub <noreply@github.com>2016-08-08 16:50:48 -0400
commit35225e2ade08ea32e36a994cd4ff90842c599e20 (patch)
tree793c22e73b734f261048a7a47cde9a5833227cba /tests/servers/test_basehttp.py
parenta6baada7bdf0c2b14045ee86364f9401c7b91b7c (diff)
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'.
Diffstat (limited to 'tests/servers/test_basehttp.py')
-rw-r--r--tests/servers/test_basehttp.py3
1 files changed, 3 insertions, 0 deletions
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):