mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Remove unicode from exception value.
This commit is contained in:
parent
5fdc4f22cf
commit
3ddbf92bf9
|
@ -1461,7 +1461,7 @@ class TestListField(FieldValues):
|
|||
|
||||
with pytest.raises(serializers.ValidationError) as exc_info:
|
||||
field.to_internal_value(input_value)
|
||||
assert exc_info.value.detail == [u'Expected a list of items but got type "dict".']
|
||||
assert exc_info.value.detail == ['Expected a list of items but got type "dict".']
|
||||
|
||||
|
||||
class TestEmptyListField(FieldValues):
|
||||
|
|
Loading…
Reference in New Issue
Block a user