mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix test_http on Python 2
This commit is contained in:
parent
b17f1bc305
commit
31fd844333
@ -80,7 +80,7 @@ def test_http_header_encoding():
|
||||
response = Response(mocked_request, mocked_socket, None)
|
||||
|
||||
# set umlaut header
|
||||
response.headers.append(('foo', 'häder'))
|
||||
response.headers.append(('foo', u'häder'))
|
||||
with pytest.raises(UnicodeEncodeError):
|
||||
response.send_headers()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user