Fix WSGI signature for DjangoTestAdapter (#7846)

Closes https://github.com/encode/django-rest-framework/issues/7132
This commit is contained in:
Tom Christie 2021-03-17 13:24:38 +00:00 committed by GitHub
parent a40bce50cd
commit 3e274146fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ if requests is not None:
"""
raw_kwargs = {}
def start_response(wsgi_status, wsgi_headers):
def start_response(wsgi_status, wsgi_headers, exc_info=None):
status, _, reason = wsgi_status.partition(' ')
raw_kwargs['status'] = int(status)
raw_kwargs['reason'] = reason