Commit 3ddbf92b by Dawn Pattison

Remove unicode from exception value.

parent 5fdc4f22
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment