mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-18 12:33:20 +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:
|
with pytest.raises(serializers.ValidationError) as exc_info:
|
||||||
field.to_internal_value(input_value)
|
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):
|
class TestEmptyListField(FieldValues):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user