mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Fix BytesWarning in test_schemas.py (#6638)
This commit is contained in:
parent
e16273a658
commit
f669395dd8
|
@ -1358,4 +1358,4 @@ def test_schema_handles_exception():
|
||||||
response = schema_view(request)
|
response = schema_view(request)
|
||||||
response.render()
|
response.render()
|
||||||
assert response.status_code == 403
|
assert response.status_code == 403
|
||||||
assert "You do not have permission to perform this action." in str(response.content)
|
assert b"You do not have permission to perform this action." in response.content
|
||||||
|
|
Loading…
Reference in New Issue
Block a user