diff options
| author | Tim Graham <timograham@gmail.com> | 2016-08-08 16:50:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-08 16:50:48 -0400 |
| commit | 35225e2ade08ea32e36a994cd4ff90842c599e20 (patch) | |
| tree | 793c22e73b734f261048a7a47cde9a5833227cba /tests/servers/test_basehttp.py | |
| parent | a6baada7bdf0c2b14045ee86364f9401c7b91b7c (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.py | 3 |
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): |
